atari email archive

a collection of messages sent at Atari from 1983 to 1992.

BCP Utility

(1 / 1)


Thanks to Jim Morris, there is a new Graphics Utility available to scale, yaw,
or pitch a picture(s).  Scaling can be used to magnify or reduce a picture, yaw
or pitch rotates a picture about the Y or X axis contained within the plane
of the picture (standard Cartesian Coordinate alignment).  For location and
documentation, see below.

The exe file is in SYS$USERDISK:[PPS.UTILITIES]BCP.EXE both on nodes KIM::
and CHARM::.  The documentation file is in the same place, called BCP.DOC.

******************************************************************************

BCP will yaw, pitch or scale a PK4 file. NOTE: a .PK4 format is equivalent to
a .INT format.  The operations required to be done on a frame are explicitly
entered in a command file.  The format of this command file follows:

The following must be put at the start of the file in this order:-
  input filename(.pk4) output filename(.pk4)
  input frame size (width height)
  Output frame size (width height)
  number of frames in file

The following are optional and tell BCP what to do with each frame:-
  !		- comment to end of line
  p n.n		- pitch n.n degrees
  y n.n		- yaw n.n degrees
  s n.n		- scale down to n.n% of original size
  d		- write picture to file
  e		- end of command list

The d command must be used to write the resultant picture to the output file.
After the d command any operation is performed on the original frame,
(NOT the result of the previous command).

Examples:-

TESTIN TESTOUT
64 64
64 64
1
! start of test scale frame down 50%, then display it.
s 50.0 d
! yaw frame 25.5 degrees then display it
y 25.5 d
! pitch frame 10.5 degrees, then yaw 22.4 degrees then scale down by 22.5%
p 10.5 y 22.4 s 22.5 d
e

The preceding example does the commented operations on one frame in TESTIN.PK4
and outputs the results to file TESTOUT.PK4

The frame is 64 by 64 pixels and so will the output be.

				jegm - 12/12/85.
Message 1 of 1

Dec 12, 1985