Graph ics Co mm an d Set
Write Graphics Control (WGC)
Length D684 Flag Correlation ID
(Optional)
DATA
(GAP, GOC, GDD)
The Write Graphics Control command causes the printer to enter the graphics
object area state. The parameters of this command define the size, placement,
and orientation of the graphics object area and establish the initial conditions for
interpreting the graphics data. Receiving the End command in the graphics
object area state terminates the processing of the graphics data.
The Write Graphics Control data consists of three consecutive structured fields:
•
The Graphics Area Position control defines the position of the graphics
picture on the page.
•
The Graphics Output Control (GOC) defines the size of this picture on the
page.
•
The Graphics Data Descriptor (GDD) defines the size of the graphics window
and the default characteristics of the graphics picture.
Each structured field contains a two byte length field, then a two byte structured
field ID, and finally a data field.
Graphics Area Position Control (GAP)
The Graphics Area Position Control structured field is the first structured field in
the DATA portion of the Write Graphics Control command. This field defines the
position and orientation of the graphics object area. The top left corner of the
graphics object area is defined relative to the reference coordinate system.
The format of the GAP field is:
Length AC6B DATA
Table 74 (Page 1 of 2). Graphics Area Position
Byte Value Description Error Code
0-1 X'000B'-End of
GAP
Length of Graphics Area Position X'0202..05'
2-3 X'AC6B' Structured Field ID. X'020B..05'
4-5 X'8000'-X'7FFF' Graphics Object Area Origin Xp, I, or I-offset
Coordinate Position See “Notation Conventions” on
page 27
6-7 X'8000'-X'7FFF' Graphics Object Area Origin Yp, B, or B-offset
Coordinate Position See “Notation Conventions” on
page 27
8-9
X'0000'
X'2D00'
X'5A00'
X'8700'
Orientation of Graphics Object Area
0 Degrees
90 Degrees
180 Degrees
270 Degrees
X'0203..05'
Chapter 3. IPDS Commands Reference 83