Apple Newton Utilities Guide de l'utilisateur Page 545

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 942
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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)
Vue de la page 544
1 2 ... 540 541 542 543 544 545 546 547 548 549 550 ... 941 942

Commentaires sur ces manuels

Pas de commentaire