Compartilhar via


2.2.2.2.1.1.2.21 DrawNineGrid (DRAWNINEGRID_ORDER)

The DrawNineGrid Primary Drawing Order encodes a single NineGrid drawing command with a single bounding rectangle.

 Encoding order number: 7 (0x07)
 Negotiation order number: 7 (0x07)
 Number of fields: 5
 Number of field encoding bytes: 1
 Maximum encoded field length: 10 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

srcLeft (variable)

srcTop (variable)

srcRight (variable)

srcBottom (variable)

bitmapId

srcLeft (variable): The left coordinate of the clipping rectangle to be applied to the bitmap stored at the entry given by the bitmapId field. The coordinate is specified by using a Coord Field (section 2.2.2.2.1.1.1.1).

srcTop (variable): The top coordinate of the clipping rectangle to be applied to the bitmap stored at the entry given by the bitmapId field. The coordinate is specified by using a Coord Field (section 2.2.2.2.1.1.1.1).

srcRight (variable): The right coordinate of the clipping rectangle to be applied to the bitmap stored at the entry given by the bitmapId field. The coordinate is specified by using a Coord Field (section 2.2.2.2.1.1.1.1).

srcBottom (variable): The bottom coordinate of the clipping rectangle to be applied to the bitmap stored at the entry given by the bitmapId field. The coordinate is specified by using a Coord Field (section 2.2.2.2.1.1.1.1).

bitmapId (2 bytes): A 16-bit, unsigned integer. The index of the NineGrid Bitmap Cache entry wherein the bitmap and NineGrid transformation information are stored. This value MUST be greater than or equal to 0 and less than the maximum number of entries allowed in the NineGrid Bitmap Cache as specified by the drawNineGridCacheEntries field of the DrawNineGrid Cache Capability Set (section 2.2.1.2). The bitmap and transformation information stored in the cache MUST have already been cached in response to a Create NineGrid Bitmap (section 2.2.2.2.1.3.4) Alternate Secondary Drawing Order.