2.2.5.22.3 WB_GRAPHIC
WB_GRAPHIC contains the header that is used on all graphic objects, such as lines, rectangles, ellipses, and freehand drawings, that are used when representing a whiteboard object.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Length |
|||||||||||||||||||||||||||||||
|
Type |
Dataoffset |
||||||||||||||||||||||||||||||
|
rectBounds |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
|
Color |
Locked |
||||||||||||||||||||||||||||||
|
penWidth |
penStyle |
||||||||||||||||||||||||||||||
|
Rect |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
|
lockPersonID |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
|
rasterOp |
smoothed |
Tooltype |
|||||||||||||||||||||||||||||
|
LoadedFromfile |
loadingClientID |
||||||||||||||||||||||||||||||
|
reserved1 |
|||||||||||||||||||||||||||||||
|
reserved2 |
|||||||||||||||||||||||||||||||
Length (4 bytes): The total length of the structure plus the length of the variable data that follows this structure.
Type (2 bytes): The following values indicate the type of compression that is used for the type field.
-
Value
Meaning
TYPE_GRAPHIC_FREEHAND
0x0003
A freehand drawing.
TYPE_GRAPHIC_LINE
0x0004
A line drawing.
TYPE_GRAPHIC_RECTANGLE
0x0005
A rectangle drawing.
TYPE_GRAPHIC_FILLED_RECTANGLE
0x0006
A filled rectangle drawing.
TYPE_GRAPHIC_ELLIPSE
0x0007
An ellipse drawing.
TYPE_GRAPHIC_FILLED_ELLIPSE
0x0008
A filled ellipse drawing.
TYPE_GRAPHIC_GRAPHIC_TEXT
0x0009
A line text string.
TYPE_GRAPHIC_GRAPHIC_DIB
0x000A
A device-independent bitmap.
Dataoffset (2 bytes): The size, in bytes, of this structure.
rectBounds (8 bytes): A TSHR_RECT16 structure that specifies the left, upper, right, and lower edges of the drawings bounding rectangle.
Color (3 bytes): A value MAY be present that represents the pen color value that is specified by a TSHR_COLOR structure.
Locked (1 byte): A value that indicates if a node that is editing the drawing could be 0 (for not editing) or 1 (for editing).
-
Value
Meaning
0x00
A node is not editing the drawing.
0x01
A node is editing the drawing.
penWidth (2 bytes): A value that indicates the width, in pixels, of the pen.
penStyle (2 bytes): One of the following pen style values MAY be present.
-
Value
Meaning
PS_SOLID
0x0000
The pen is solid.
PS_DASH
0x0001
The pen is dashed.
PS_DOT
0x0002
The pen is dotted.
PS_DASHDOT
0x0003
The pen has alternating dashes and dots.
PS_DASHDOTDOT
0x0004
The pen has alternating dashes and double dots.
PS_NULL
0x0005
The pen is invisible.
PS_INSIDEFRAME
0x0006
The pen is solid. When this pen is used with a bounding rectangle, the dimensions of the figure are shrunk so that it fits entirely in the bounding rectangle, taking into account the width of the pen. This applies only to geometric pens.
Rect (8 bytes): A TSHR_RECT16 structure that specifies the left, upper, right, and lower edges of the drawings that define the rectangle.
lockPersonID (8 bytes): The ID of the locking person. This field is maintained internally and SHOULD NOT be altered.
rasterOp (2 bytes): The raster operation that is used to draw the object.
-
Value
Meaning
R2_BLACK
0x0001
The pixel is always drawn as black.
R2_NOTMERGEPEN
0x0002
The pixel is the inverse of the R2_MERGEPEN color.
R2_MASKNOTPEN
0x0003
The pixel is a combination of the colors that are common to both the screen and the inverse of the pen.
R2_NOTCOPYPEN
0x0004
The pixel is the inverse of the pen color.
R2_MASKPENNOT
0x0005
The pixel is a combination of the colors that are common to both the pen and the inverse of the screen.
R2_NOT
0x0006
The pixel is the inverse of the screen color.
R2_XORPEN
0x0007
The pixel is a combination of the colors in the pen and in the screen, but not in both.
R2_NOTMASKPEN
0x0008
The pixel is the inverse of the R2_MASKPEN color.
R2_MASKPEN
0x0009
The pixel is a combination of the colors that are common to both the pen and the screen.
R2_NOTXORPEN
0x000A
The pixel is the inverse of the R2_XORPEN color.
R2_NOP
0x000B
The pixel SHOULD remain unchanged.
R2_MERGENOTPEN
0x000C
The pixel is a combination of the screen color and the inverse of the pen color.
R2_COPYPEN
0x000D
The pixel always has the color of the pen.
R2_MERGEPENNOT
0x000E
The pixel is a combination of the pen color and the inverse of the screen color.
R2_MERGEPEN
0x000F
The pixel is a combination of the pen color and the screen color.
R2_WHITE
0x0010
The pixel is always drawn as white.
smoothed (1 byte): Flag field that MUST be set to 0x0 or 0x1, specifying if the drawing uses the curve smoothing algorithm.
-
Name
Value
No smoothing
0x00
Smoothing
0x01
Tooltype (1 byte): The type of tool that is used to create this drawing. It SHOULD be one of the values that are specified in section 2.2.5.22.3.1.
LoadedFromfile (2 bytes): The flag that indicates if this drawing was loaded from a file.
loadingClientID (2 bytes): The local identifier of the user, which is obtained from the Multipoint Communication Service (MCS) [T122] layer. For more information about the MCS user ID, see [T122] section 3 (Definitions) in the ITU-T Recommendation.
reserved1 (4 bytes): Reserved. MUST be set to zero and ignored upon receipt.
reserved2 (4 bytes): Reserved. MUST be set to zero and ignored upon receipt.