Inked Area - DEPRECATED
Purpose
The Inked Area opcode specifies a rectangle, in logical coordinates,
in which all of the WHIP! data’s geometric primitives fit tightly
inside. Prior to encountering or drawing the drawables, this opcode
gives the WHIP! data readers or viewers an idea of the rectangle within which
all the drawables, in that WHIP! data, would fit.
Syntax
Opcode
format |
Opcode |
Operand
Format |
Comments |
Extended ASCII |
(InkedArea |
<ws><IX1>,<IY1><ws><IX2>,<IY2>[<ws>]) |
Defines bounding
rectangle for the drawing |
X1,Y1 The logical coordinates of the lower-left
corner of the drawing’s bounding box
X2,Y2 The logical coordinates of the upper-right
corner of the drawing’s bounding box
Details
Some WHIP! data reading applications may need to "know" where in the logical
coordinate space the geometric primitives will be located. This information
can be used, for example, to aid in the selection of an initial view of
the file.
Only extended ASCII format is supported for this opcode. This
opcode can occur only once in WHIP! data, at the very top,
just after the WHIP! header as shown following:
(DWF V00.50)
(InkedArea 00000000319,00000000335 00000002897,00000000335
00000002897,00000003457 00000000319,00000003457)
In many cases, a WHIP! data writing application may not know in advance what
the bounds of the drawing will be until after all the geometric primitives
have been written. The toolkit has a mechanism of remembering the original
place (where the opcode gets written first) and subsequently seeks back
to the same place to update the bounding rectangle. This way, the toolkit
ensures that the opcode gets written only once in WHIP! data , specifyies
the boundary in logical co-rodinates and tightly bounds the geometric primitives.
Header Block and Inked Area
Every header block must have an Inked Area opcode returned as
part of the header blockref representing the inked area of the corresponding
graphic block. For more information, see the Graphic
Header, Overlay Header and
Redline Header BlockRefs.
Default
By default the drawing bounds include the entire logical coordinate
space, which a WHIP! data reader may recompute once the
file has been fully parsed.