2.3.4.18 EmfPlusFillPie Record
The EmfPlusFillPie record specifies filling a section of the interior of an ellipse.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type |
Flags |
||||||||||||||||||||||||||||||
Size |
|||||||||||||||||||||||||||||||
DataSize |
|||||||||||||||||||||||||||||||
BrushId |
|||||||||||||||||||||||||||||||
StartAngle |
|||||||||||||||||||||||||||||||
SweepAngle |
|||||||||||||||||||||||||||||||
RectData (variable) |
|||||||||||||||||||||||||||||||
... |
Type (2 bytes): An unsigned integer that identifies this record type as EmfPlusFillPie from the RecordType enumeration. The value MUST be 0x4010.
Flags (2 bytes): An unsigned integer that provides information about how the operation is to be performed, and about the structure of the record.
-
0
1
2
3
4
5
6
7
8
91
0
1
2
3
4
5
6
7
8
92
0
1
2
3
4
5
6
7
8
93
0
1S
C
X
X
X
X
X
X
X
X
X
X
X
X
X
X
-
S (1 bit): This bit indicates the type of data in the BrushId field.
-
If set, BrushId specifies a color as an EmfPlusARGB object. If clear, BrushId contains the index of an EmfPlusBrush object in the EMF+ Object Table.
-
-
C (1 bit): This bit indicates whether the data in the RectData field is compressed.
-
If set, RectData contains an EmfPlusRect object. If clear, RectData contains an EmfPlusRectF object.
-
-
X (1 bit): Reserved and MUST be ignored.
Size (4 bytes): An unsigned integer that specifies the 32-bit-aligned number of bytes in the entire record, including the 12-byte record header and record-specific data. For this record type, the value MUST be one of the following:
-
Value
Meaning
0x00000020
If the C bit is set in the Flags field.
0x00000028
If the C bit is clear in the Flags field.
DataSize (4 bytes): An unsigned integer that specifies the 32-bit-aligned number of bytes of record-specific data that follows. For this record type, the value MUST be one of the following:
-
Value
Meaning
0x00000014
If the C bit is set in the Flags field.
0x0000001C
If the C bit is clear in the Flags field.
BrushId (4 bytes): An unsigned integer that defines the brush, the content of which is determined by the S bit in the Flags field.
StartAngle (4 bytes): A non-negative floating-point value that specifies the angle between the x-axis and the starting point of the pie wedge. Any value is acceptable, but it MUST be interpreted modulo 360, with the result that is used being in the range 0.0 inclusive to 360.0 exclusive.
SweepAngle (4 bytes): A floating-point value that specifies the extent of the arc that defines the pie wedge to fill, as an angle in degrees measured from the starting point defined by the StartAngle value. Any value is acceptable, but it MUST be clamped to -360.0 to 360.0 inclusive. A positive value indicates that the sweep is defined in a clockwise direction, and a negative value indicates that the sweep is defined in a counter-clockwise direction.
RectData (variable): Either an EmfPlusRect or EmfPlusRectF object that defines the bounding box of the ellipse that contains the pie wedge. This rectangle defines the position, size, and shape of the pie. The type of object in this field is specified by the value of the Flags field.
See section 2.3.4 for the specification of additional drawing record types.