Chapter 4: bitmapinstance object, Bitmapinstance.getbits() – Adobe Extending Flash Professional CS4 User Manual
Page 54
32
Chapter 4: BitmapInstance object
Inheritance
>
Availability
Flash MX 2004.
Method summary
In addition to the
methods, you can use the following methods with the BitmapInstance object:
Property summary
In addition to the
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
Lets you create bitmap effects by getting the bits out of the bitmap,
manipulating them, and then returning them to Flash.
Sets the bits of an existing bitmap element.
Property
Description
Read-only; an integer that represents the width of the bitmap, in pixels.
Read-only; an integer that represents the height of the bitmap, in pixels.