This section lists opcodes by single byte, extended ASCII, and extended binary formats. It is a convenient, quick reference to the standard opcode definitions in the Opcode Reference.
Single Byte Opcodes
Table 1. Single
Byte Formatted Opcodes
ASCII | Hex | Operand Format | Refer to |
Ctrl-C | (03) | <BR><BG><BB><BA> | Set Color |
Ctrl-F | (06) | <USFields>[<TFont>][<BCharset>][<BPitch>]\
[<BFamily>][<BStyle>][<ULHeight>][<USRotation>]\ [<USWidthscale>][<USSpacing>]\[<USOblique>][<ULFlags>] |
Set Font |
Ctrl-G | (07) | <BCount>[<USEcount>]<SX1><SY1><ULC1>\
<Sx2><Sy2><ULC2>[<Sxi><Syi><ULCi>]+ |
Draw Gouraud Polytriangle |
Ctrl-K | (0B) | <BCS-count>[<USCS-Ecount>][<BP-counti>[USP-Ecounti>]]+\
<Sx1><Sy1>[<Sxj><Syj>]+ |
Draw Contour Set |
Ctrl-L | (0C) | <SX1><SY1><SX2><SY2> | Draw Line |
Ctrl-N | (0E) | None | Set Object Node |
Ctrl-P | (10) | <BCount>[<USEcount>][<SXi><SYi>]+ | Draw Polyline |
Ctrl-R | (12) | <SX><SY><USR> | Draw Circle |
Ctrl-W | (17) | <LWeight> | Set Line Weight |
Ctrl-X | (18) | <Lx><Ly><TStr>\
<BOS-Count>[<USOS-Ecount>][<BOS-Posi>[<USOS-Eposi>]]*\ <BUS-Count>[<USUS-Count>][<BUS-Posi>[<USUS-Eposi>]]*\ <BRES-Count>[<USRES-Ecount>][<BRES-Posi>[<USRES-Eposi>]]*\ <LP0x><LP0y><LP1x><LP1y><LP2x><LP2y><LP3x><LP3y> |
Draw Text |
C | (43) | [<ws>]<IIndex> | Set Color |
E | (45) | [<ws>]<IX>,<IY><ws><IRh>,<IRv> | Draw Ellipse |
F | (46) | None | Set Fill Mode |
G | (47) | [<ws>]<IIndex> | Set Marker Glyph |
L | (4C) | [<ws>]<IX1>,<IY1><ws><IX2>,<IY2> | Draw Line |
M | (4D) | [<ws>]<ICount>[<ws><IXi>,<IYi>]+ | Draw Polymarker |
N | (4E) | <ULNodeNum> | Set Object Node |
O | (4F) | <ULX><ULY> | Set CurrentPoint. |
P | (50) | [<ws>]<ICount>[<ws><IXi>,<IYi>]+ | Draw Polyline/Polygon |
R | (52) | [<ws>]<IX>,<IY><ws><IR> | Draw Circle |
S | (53) | [<ws>]<ISize> | Set Marker Size |
T | (54) | [<ws>]<ICount>[<ws>]<IXi>,<IYi]+ | Draw Polytriangle |
V | (56) | None | Set Visibility |
b | (62) | <BCount>[<USEcount>]<LXs><LYs>\
[<LXC1><LYC1><LXC2><LYC2><LXe><LYe>]+ |
Draw PolyBézier curve |
c | (63) | <BIndex> | Set Color |
e | (65) | <LX><LY><ULRh><ULRv><USStart><USEnd><USTilt> | Draw Ellipse |
f | (66) | None | Set Fill Mode |
g | (67) | <BCount>[<USEcount>]<LX1><LY1>\
<ULC1><LX2><LY2><ULC2>[<Lxi><Lyi><ULCi>]+ |
Draw Gouraud Polytriangle |
k | (6B) | <BCS-count>[<USCS-Ecount>][<BP-counti>[USP-Ecounti>]]+\
<Lx1><Ly1>[<Lxj><Lyj>]+ |
Draw Contour Set |
l | (6C) | <LX1><LY1><LX2><LY2> | Draw Line |
m | (6D) | <BCount>[<USEcount>][<LXi><LYi>]+ | Draw Polymarker |
n | (6E) | <SNodeNum> | Set Object Node |
p | (70) | <BCount>[<USEcount>][<LXi><LYi>]+ | Draw Polyline |
r | (72) | <LX><LY><ULR> | Draw Circle |
s | (73) | <ULSize> | Set Marker Size |
t | (74) | <BCount>[<USEcount>][<LXi><LYi>]+ | Draw Polytriangle |
v | (76) | None | Set Visibility |
w | (77) | <B>[<US>][<L><L>]+ | Draw Textured Polytriangle |
x | (78) | <Lx><Ly><TStr> | Draw Text |
N/A | (87) | <USIndex> | Set Marker Glyph |
N/A | (8C) | <BCount>[<SX1><SY1><SX2><SY2>]+ | Draw Line |
N/A | (8D) | <BCount>[<USEcount>][<SXi><SYi>]+ | Draw Polymarker |
N/A | (92) | <LX><LY><ULR><USStart><USEnd> | Draw Circle |
N/A | (AC) | <BLayerNum>[<USElayernum>] | Set Layer |
Extended ASCII
Opcodes
Table 2. Extended
ASCII Formatted Opcodes
ASCII Extended Opcode | Operand Format | Refer to |
(Alignment | <ws><Talignment> | Define Alignment |
(Author | <ws><TAuthor>) | Define Drawing Author |
(BlockRef | <Tformat><ULfile_offset><ULblock_size>(<Guidblock_guid>)\ | BlockRef |
(Background | <ws><IR>,<IG>,<IB>,<IA>[<ws>]) | Define Drawing Background |
(BlockMeaning | <ws><Tmeaning> | Define Block Meaning |
(Bezier | <ws><ICount><ws><IXs>,<IYs>[<ws><IXC1>,<IYC1><ws>\
<IXC2>,<IYC2><ws><IXe>,<IYe>]+[<ws>]) |
Draw PolyBezier curve |
(Circle | <ws><IX>,<IY><ws><IR><ws><IStart>,<IEnd>[<ws>]) | Draw Circle/Circular Arc/Circular Wedge |
(CodePage | [<ws><IValue>]) | Set Code Page |
(Color | <ws><IR>,<IG>,<IB>,<IA>[<ws>]) | Set Color |
(ColorMap | <ws><ICount>[<ws><IRi>,<IGi>,<IBi>,<IAi>]+[<ws>]) | Set Color Map |
(Comment | [<ws><TComment>]) | Comment[s] |
(Comments | [<ws><TComments>]) | Comment[s] |
(Contour | <ws><ICS-count>[<ws><IP-counti>]+<ws>\
<Ixl>,<Iyl>[<ws><Ixj>,<Iyj>]+ |
Draw Contour Set |
(Copyright | <ws><TNotice>[<ws>]) | Define Copyright |
(Created | <ws><ITime><ws><TDesc><ws><TGUID>) | Define Drawing Creation Time |
(Creator | [<ws><TProgram>]) | Define Drawing Creator |
(Description | [<ws><TDesc>]) | Define Drawing Description. |
(Directory | <Ltotal_number_of_blocks>(<BlockRefblockref>)\
(<BlockRefblockref>)<more blockrefs>\ <ULdirectory_beginning_file_offset>)\ |
Directory |
(DrawingInfo | [<ws><TInfo>]) | Define Drawing Information Block |
(Ellipse | <ws><IX>,<IY><ws><IRh>,<IRv><ws><IStart>,\
<IEnd><ws><ITilt>[<ws>]) |
Draw Ellipse/Elliptical Arc/Elliptical Wedge |
(Embedded_Font | <w | Define Embedded Font |
(EmbedFile | <ws>(<TType>/<TSubtype>;[<TOptions>])<ws>\
(<TDesc>)<ws>(<TFilename>)<ws>{<DData>}) |
Embed Source File |
(Embed | <ws>(<TType>/<TSubtype>;[<TOptions>])<ws>\
(<TDesc>)<ws>(<TFilename>)<ws>{<TURL>}) |
Embed Source File |
(Encryption | <ws><Tencryption> | Define Encryption |
(Font | [<ws>(Name<ws><TFont>)]\
[<ws>(Charset<ws><TCharset>)][<ws>(Pitch<ws><TPitch>)]\ [<ws>(Family<ws><TFamily>)][<ws>(Style[<ws>bold][<ws>italic])]\ [<ws>(Height<ws><IHeight>)][<ws>(Widthscale<ws><IWidthscale>)]\ [<ws>(Spacing<ws><ISpacing>)][<ws>(Oblique<ws><IOblique>)]\ [<ws>(Flags<ws><IFlags>)][<ws><RDescription>]*[<ws>]) |
Set Font |
(Gouraud | <ws><ICount><ws><IX1>,<IY1><ws><IR1>,<IG1>,<IB1>,<IA1><ws>\
<IX2>,<IY2><ws><IR2>,<IG2>,<IB2>,<IA2>[<ws><IXi>,<IYi><ws>\ <Iri>,<Igi>,<Ibi>,<Iai>]+[<ws>]) |
Draw Gouraud Polytriangle |
(Group4PNGImage | <ws>"<TFormat<IId>"<ws>>[<ws><ICol>,<IRow><ws><IX1>,<IY1><ws><IX2>,<IY2><IColorMapSize>
[(Colormap <ws><ICount>[<ws><IRi>,<IGi>,<IBi>,<IAi>]+[<ws>])]]\ [(<ws><IDSize><ws>[<HData>]+)]) |
Draw Group4 PNG Image |
(GroupBegin | <ws><Tgroup_name>) | Group Begin |
(GroupEnd | <ws> | Group End |
(Guid | <ws><ULData1><USData2><USData3><TData4> | Define Guid |
(GuidList | <ws><INumber
of guids maintained in this list><ws>
<ws><Guidguid1><ws><Guidguid2> <ws><Guidguid1>...up to n guids) |
Define Guid List |
(Image | <ws><TFormat><ws><IId>[<ws><ICol>,<IRow><ws><IX1>,<IY1><ws>\
<IX2>,<IY2>][(Colormap<ws><ICount>[<ws><IRi>,<IGi>,<IBi>,\ <IAi>]+[<ws>])]][(<ws><IDSize><ws>[<HData>]+)]) |
Draw Image |
(InkedArea | <ws><IX1>,<IY1><ws><IX2>,<IY2>[<ws>]) | Inked Area |
(Keywords | <ws><TList>[<ws>]) | Define Keywords |
(Layer | <ws><ILayerNum>[<ws><TLayerName>]) | Set Layer |
(LinePattern | <ws><TPatName>[<ws>]) | Set Line Pattern |
(LinesOverwrite | <ws>'opaque'|'merge'|'transparent | Merge Control |
(LineStyle | <ws>(AdaptPatterns<ws><TBoolean>[<ws>])]\
[<ws>(LinePatternScale<ws><FScale>[<ws>])]\ [<ws>(LineStartCap<ws><TCap>[<ws>])]\ [<ws>(LineEndCap<ws><TCap>[<ws>])]\ [<ws>(DashStartCap<ws><TCap>[<ws>])]\ [<ws>(DashEndCap<ws><TCap>[<ws>])]\ [<ws>(LineJoin<ws><TJoin>[<ws>])]\ [<ws>(MiterAngle<ws><IAngle>[<ws>])]\ [<ws>(MiterLength<ws><ILength>[<ws>])]) |
Set Line Style |
(LineWeight | <ws><IWeight>[<ws>]) | Set Line Weight |
(Modified | <ws><ITime><ws><TDesc><ws><TGUID>) | Define Drawing Modification Time |
(NamedView | [<ws><IX1>,<IY1><ws><IX2>,<IY2><ws><TName>][<ws>]) | Define Named View |
(Node | <ws><INodeNum>[<ws><TNodeName>]) | Set Object Node |
(NonStdFontList | 'fontname0' 'fontname1' 'fontname2' ...... ) | Define Trusted Font List |
(Orientation | <ws><Torientation> | Define Orientation |
(PenPattern | <ws><IPen pattern type><ws><UIScreening percentage value><ws><BColorMap flag><ws><ColorMap> | Set Pen Pattern |
(Pen Pattern Options | <ws><Bscale_pen_width><Bmap_colors_to_gray_scale><ws><Buse_alternate_fill_rule>,
<Buse_error_diffusion_for_Rasters>[<ws>]) |
Pen Pattern Options |
(PlotInfo | <ws><TShowPaper><ws><IRotation><ws><TUnits>\
<ws><FWidth><ws><FHeight>\ <ws><FLeft><ws><FBottom><ws><FRight><ws><FTop><ws>\ ((<FM00><ws><FM01><ws><FM02>)\ (<FM10><ws><FM11><ws><FM12>)\ (<FM20>><ws><FM21><ws><FM22>))[<ws>]) |
Define Plot Info |
(PlotOptimized | <ws>|0|1 | Opitimized For Plotting |
(Projection | [<ws>]<TProj>) | Set Projection |
(Psswd | <ws><Tpassword> | Define Password |
(SignData | <ws><Iboolean signaling the presence/absence of Guid List opcode><ws><Guid Listblock ids list><ws><Isignature data size><ws><Byte *signature data>) | Define SignData |
(SourceCreated | <ws><ITime><ws><TDesc><ws><TGUID>) | Define Source Drawing Creation Time |
(SourceFilename | <ws><TFilename>) | Define Source Drawing Filename |
(SourceModified | <ws><ITime><ws><TDesc><ws><TGUID>) | Define Source Drawing Modification Time |
(Text | <ws><IX>,<IY><ws><TStr>\
[<ws>(Overscore<ws>(<IOS-Count><ws><IOS-Pos0>[,<IOS-Posi>]*))]\ [<ws>(Underscore<ws>(<IUS-Count><ws><IUS-Pos0>[,<IUS-Posi>]*))]\ [<ws>(CharPos<ws>(<IRES-Count><ws><IRES-Pos0>[,<IRES-Posi>]*))]\ [<ws>(Bounds<ws><IP0x>,<IP0y><ws><IP1x>,<IP1y><ws><IP2x>,<IP2y>\ <ws><IP3x>,<IP3y>)]\ [<ws>]) |
Draw Text |
(Time | <ws><Ilow_time_value><Ihigh_time_value> | Define FileTime |
(Units | <ws><TUnits><ws>\
((<FH00><ws><FH01><ws><FH02><ws><FH03>)\ (<FH10><ws><FH11><ws><FH12><ws><FH13>)\ (<FH20><ws><FH21><ws><FH22><ws><FH23>)\ (<FH30><ws><FH31><ws><FH32><ws><FH33>))) |
Define Drawing Units |
(URL | [<ws>(<IIndex><ws><TAddress><ws><TName>)]\ [<ws>(<IIndex><ws><TAddress><ws><TName>)]+[<ws>]) | Set URL Link |
(UserData | <ws><Tdata description><ws><IDataSize><ws><HData>) | Define UserData |
(View | [<ws><IX1>,<IY1><ws><IX2>,<IY2>[<TName>][<ws>]) | Define Initial View |
(Viewport | <ws><TName>\
[<ws>]<ICount>[<ws><IXi>,<IYi>]+\ <ws><TUnits><ws>\ ((<FM00><ws><FM01><ws><FM02><ws><FM03>)\ (<FM10><ws><FM11><ws><FM12><ws><FM13>)\ (<FM20><ws><FM21><ws><FM22><ws><FM23>)\ (<FM30><ws><FM31><ws><FM32><ws><FM33>))) |
Set Viewport |
Extended Binary
Opcodes
Table 3. Extended
Binary Formatted Opcodes
Extended
Binary
Opcode (Hex) |
|
Refer to |
00 01 | <BCount>[<BRi><BGi><BBi><BAi>]+} | Set Color Map |
00 02 | <USCol><USRow><LX1><LY1><LX2><LY2><LId><BCount>\
[<BRi><BGi><BBi><BAi>]+<LDSize>[<BData>]+} |
Draw Mapped Bitonal Image |
00 03 | <USCol><USRow><LX1><LY1><LX2><LY2><LId><BCount>\
[<BRi><BGi><BBi><BAi>]+<LDSize>[<BData>]+} |
Draw Mapped Group 3X Image |
00 04 | <USCol><USRow><LX1><LY1><LX2><LY2><LId><LDSize>\
[<BGIndex>]+} |
Draw Indexed Color Image |
00 05 | <USCol><USRow><LX1><LY1><LX2><LY2><LId><BCount>\
[<BRi><BGi><BBi><BAi>]+<LDSize>[<BLIndex>]+} |
Draw Mapped Color Image |
00 06 | <USCol><USRow><LX1><LY1><LX2><LY2><LId><LDSize>\
[<BRn><BGn><BBn>]+} |
Draw RGB Image |
00 07 | <USCol><USRow><LX1><LY1><LX2><LY2><LId><LDSize>\
[<BRn><BGn><BBn><BAn>]+} |
Draw RGBA Image |
00 08 | <USCol><USRow><LX1><LY1><LX2><LY2><LId><LDSize>\
[<BData>]+} |
Draw JPEG Image |
00 09 | <USCol><USRow><LX1><LY1><LX2><LY2><LId><LColorMapSize><LDSize>[<BData>]+} | Draw Group4 PNG Image |
00 10
00 11 |
[<D>]*} | Define Compressed Data |
0x014A | <ws><ULData1><USData2><USData3><TData4> | Define Guid |
0x014B | <USpassword> | Define Password |
0x014D | <ULlow_time_value><ULhigh_time_value> | Define FileTime |
0x015D | <USformat><ULfile_offset><ULblock_size><Guidblock_guid>\ | BlockRef |
0x0142 | <USmeaning> | Define Block Meaning |
0x0143 | <USencryption> | Define Encryption |
0x0145 | <USorientation> | Define Orientation |
0x0147 | <USalignment> | Define Alignment |
0x0160 | <Ltotal_number_of_blocks>(<WT_BlockRefblockref>)
(<BlockRefblockref>)<more blockrefs> <ULdirectory_beginning_file_offset>)+} |
Directory |
0x0162 | <Tdata description stored as ascii text><LDSize><BData>)+} | Define UserData |
0x0164 | <I'Pen pattern type><UI Screening percentage value><BColorMap flag><ColorMap>)+} | Set Pen Pattern |
0x0166 | <Byte'0' or '1' flag signalling the presence/absence of Guid List opcode><Guid List block ids list><Isignature data size><Byte *signature data>)+} | Define SignData |
0x0168 | <INumber
of guids maintained in this list>
Guidguid1>Guidguid2>Guidguid3>...up to n guids)+} |
Define Guid List |