Adobe Extending Flash Professional CS4 Uživatelský manuál Strana 54

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 560
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 53
32
Chapter 4: BitmapInstance object
Inheritance Element object > Instance object > BitmapInstance object
Availability
Flash MX 2004.
Description
The BitmapInstance object is a subclass of the Instance object and represents a bitmap in a frame (see Instance object).
Method summary
In addition to the Instance object methods, you can use the following methods with the BitmapInstance object:
Property summary
In addition to the Instance object properties, you can use the following properties with the BitmapInstance object:
bitmapInstance.getBits()
Availability
Flash MX 2004.
Usage
bitmapInstance.getBits()
Parameters
None.
Returns
An object that contains width, height, depth, bits, and, if the bitmap has a color table, cTab properties. The bits
element is an array of bytes. The
cTab element is an array of color values of the form "#RRGGBB". The length of the
array is the length of the color table.
Method Description
bitmapInstance.getBits() Lets you create bitmap effects by getting the bits out of the bitmap,
manipulating them, and then returning them to Flash.
bitmapInstance.setBits() Sets the bits of an existing bitmap element.
Property Description
bitmapInstance.hPixels Read-only; an integer that represents the width of the bitmap, in pixels.
bitmapInstance.vPixels Read-only; an integer that represents the height of the bitmap, in pixels.
Zobrazit stránku 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 559 560

Komentáře k této Příručce

Žádné komentáře