
CHAPTER 13
Drawing and Graphics
Using the Drawing Interface 13-19
Figure 13-10 Example of ViewIntoBitmap method
Rotating or Flipping a Bitmap 13
Use the MungeBitmap function (page 10-22) to perform various bitmap operations
such as rotating or flipping the bitmap. These operations are destructive to the bitmap
passed as an argument to this function; the bitmap is modified in place and the
modified bitmap shape is returned. Figure 13-11 illustrates how the MungeBitmap
function works. See “Using Bitmaps” (page 13-17) for a code example.
Figure 13-11 Example of MungeBitmap method
(0, 0)
(0, 0)
(50, 100)
(10, 10)
srcRect
destBitmap destRect
view to capture
(115, 310)
(15, 10)
myBitmap
myBitmap
after calling
MungeBitmap (myBitmap, 'rotateLeft);
(315,110)
(15, 10)
Commentaires sur ces manuels