Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
4.4 NineGrid Examples

4.4 NineGrid Examples

The following diagram illustrates how a NineGrid bitmap may be resized when it is rendered. The NineGrid Bitmap Information (section 2.2.2.2.1.3.4.1) structure defines the grid layout, specifically the sizes of the LeftWidth, RightWidth, TopHeight, and BottomHeight constants.

MS-RDPEGDI_pictc26125cc-2d94-60ad-dc9d-f2b0464c1dc8.png

Figure 18: Expansion of a NineGrid bitmap

The following diagram illustrates how a source bitmap in the NineGrid Bitmap Cache (section 3.1.1.1.6) is clipped and then modified using a NineGrid transformation to produce a final image in a destination rectangle.

MS-RDPEGDI_pict7fe73c35-269a-1331-1c0c-4fc4ec34062b.png

Figure 19: Illustration of Draw Nine Grid Primary Drawing Order

The DrawNineGrid (section 2.2.2.2.1.1.2.21) and MultiDrawNineGrid (section 2.2.2.2.1.1.2.22) Primary Drawing Orders are used to render NineGrid bitmaps that have been stored in the NineGrid Bitmap Cache using the Create NineGrid Bitmap (section 2.2.2.2.1.3.4) and Stream Bitmap Orders (section 2.2.2.2.1.3.5).

Show:
© 2015 Microsoft