Apple Newton Utilities Podręcznik Użytkownika Strona 545

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 942
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 544
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 ipping the bitmap. These operations are destructive to the bitmap
passed as an argument to this function; the bitmap is modied in place and the
modied 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)
Przeglądanie stron 544
1 2 ... 540 541 542 543 544 545 546 547 548 549 550 ... 941 942

Komentarze do niniejszej Instrukcji

Brak uwag