Purpose
Opcode format | Opcode | Operand Format | Comments |
Extended ASCII | (Group4PNGImage | <ws>"<TFormat<IId>"<ws>>[<ws><ICol>,<IRow>\
<ws><IX1>,<IY1><ws><IX2>,<IY2><IColorMapSize> [(Colormap <ws><ICount>[<ws><IRi>,<IGi>,<IBi>,<IAi>]+\
|
Draws an PNG or Group4 Bitonal image |
Extended Binary | 0x0009 | <USCol><USRow><LX1><LY1><LX2><LY2><LId><L>\
<LDSize>[<BData>]+} |
A Group4 bitonal Image. |
Extended Binary | 0x000C | <USCol><USRow><LX1><LY1><LX2><LY2><LId><L>\
<LDSize>[<BData>]+} |
A PNG Image. |
Extended Binary | 0x000D | <USCol><USRow><LX1><LY1><LX2><LY2><LId><IColorMapSize>
[(Colormap <ws><ICount>[<ws><IRi>,<IGi>,<IBi>,<IAi>]+\
|
A Group4 bitonal transparent Image. |
Row The number of rows in the pixel array
X1,Y1 A logical coordinate indicating the lower-left corner of the image to be drawn
X2,Y2 A logical coordinate indicating the upper-right corner of the image to be drawn
Id An integer identifier that may be used by other opcodes to refer to this image (as with texture mapping). A value of zero may be used for images that will not be referred to.
Colormap An integer denoting the color map size. Typically it is 0.
Count The number of colors to be defined in this Color Map. Legal values range from 1 to 256, when using the ASCII version, or 0 to 255 when using the binary form—with zero indicating a colormap of size 256.
Ri, Gi, Bi, Ai The definition of the ith color (the red, green, blue, and alpha components) in the Color Map.
Format A description of how data in the Data array is to be interpreted.
DSize The length (in bytes) of the Data sequence that follows
Data A sequence of encoded data that represents the colors of the image pixels, see below for encoding details.
GIndex An index into the global colormap (as defined by Set Color Map) that defines the color of the nth pixel.
LIndex An index into the local colormap (as defined by the Ri, Gi, Bi, Ai parameters) that defines the color of the nth pixel.
Rn, Gn, Bn, An The color definition of the nth pixel (the red, green, blue, and alpha components).
For the extended binary opcode versions of Draw Group4 PNG Image the image data format is specified by the opcode itself. For the extended ASCII opcode form of Draw Image, the Format qualifier may be one of the following:
Group4
PNG
Group4X_Mapped