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 structure defines the grid layout, specifically the sizes of the LeftWidth, RightWidth, TopHeight, and BottomHeight constants.


Figure 18: Expansion of a NineGrid bitmap

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


Figure 19: Illustration of Draw Nine Grid Primary Drawing Order

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

© 2015 Microsoft