2.2.2.2.1.1.2.20 EllipseCB (ELLIPSE_CB_ORDER)

The EllipseCB Primary Drawing Order encodes a color brush ellipse.

 Encoding order number: 26 (0x1A)
 Negotiation order number: 26 (0x1A)
 Number of fields: 13
 Number of field encoding bytes: 2
 Maximum encoded field length: 27 bytes


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

LeftRect (variable)

TopRect (variable)

RightRect (variable)

BottomRect (variable)

bRop2 (optional)

FillMode (optional)

BackColor (optional)

...

ForeColor (optional)

BrushOrgX (optional)

BrushOrgY (optional)

BrushStyle (optional)

BrushHatch (optional)

BrushExtra (optional)

...

LeftRect (variable): The left coordinate of the inclusive rectangle for the ellipse specified by using a Coord Field (section 2.2.2.2.1.1.1.1).

TopRect (variable): The top coordinate of the inclusive rectangle for the ellipse specified by using a Coord Field (section 2.2.2.2.1.1.1.1).

RightRect (variable): The right coordinate of the inclusive rectangle for the ellipse specified by using a Coord Field (section 2.2.2.2.1.1.1.1).

BottomRect (variable): The bottom coordinate of the inclusive rectangle for the ellipse specified by using a Coord Field (section 2.2.2.2.1.1.1.1).

bRop2 (1 byte): The binary raster operation to perform (see section 2.2.2.2.1.1.1.6). The ROP2 field for the EllipseCB Primary Drawing Order has two bitfields within it. The low 5 bits (mask 0x1F) identify the real ROP2 operation. The high bit (mask 0x80) indicates whether the background drawing mode MUST be set to TRANSPARENT or OPAQUE (see section 2.2.2.2.1.1.2.11). The background drawing mode is only significant if the BrushStyle field indicates that the brush is a BS_HATCHED (0x02) or BS_PATTERN (0x03) brush.

FillMode (1 byte): The ellipse filling algorithm described by using a Fill Mode (section 2.2.2.2.1.1.1.9) structure.

BackColor (3 bytes): The background color described by using a Generic Color (section 2.2.2.2.1.1.1.8) structure.

ForeColor (3 bytes): The foreground color described by using a Generic Color (section 2.2.2.2.1.1.1.8) structure.

BrushOrgX (1 byte): An 8-bit, signed integer. The x-coordinate of the point where the top leftmost pixel of a brush pattern MUST be anchored.

BrushOrgY (1 byte): An 8-bit, signed integer. The y-coordinate of the point where the top leftmost pixel of a brush pattern MUST be anchored.

BrushStyle (1 byte): An 8-bit, unsigned integer. The contents and format of this field are the same as the BrushStyle field of the PatBlt (section 2.2.2.2.1.1.2.3) Primary Drawing Order.

BrushHatch (1 byte): An 8-bit, unsigned integer. The contents and format of this field are the same as the BrushHatch field of the PatBlt (section 2.2.2.2.1.1.2.3) Primary Drawing Order.

BrushExtra (7 bytes): A byte array of length 7. The contents and format of this field are the same as the BrushExtra field of the PatBlt (section 2.2.2.2.1.1.2.3) Primary Drawing Order.