BitmapData (flash.display.BitmapData)
Object
|
+-flash.display.BitmapData
public class BitmapData
extends Object
The BitmapData class lets you create arbitrarily sized transparent or opaque bitmap images
and manipulate them in various ways at runtime.
This class lets you separate bitmap rendering operations from the Flash Player internal display
updating routines. By manipulating a BitmapData object directly, you can create very
complex images without incurring the per-frame overhead of constantly redrawing the
content from vector data.
The methods of the BitmapData class support a variety of effects that are not available
through the generic filter interface.
A BitmapData object contains an array of pixel data. This data can represent either a fully
opaque bitmap or a transparent bitmap that contains alpha channel data. Either type of
BitmapData object is stored as a buffer of 32-bit integers. Each 32-bit integer determines the
properties of a single pixel in the bitmap.
Each 32-bit integer is a combination of four 8-bit channel values (from 0 to 255) that
describe the alpha transparency and the red, green, and blue (ARGB) values of the pixel.
The four channels (red, green, blue, and alpha) are represented as numbers when you use
them with the
BitmapData.copyChannel()
DisplacementMapFilter.componentX
properties, as follows:
(red)
1
(green)
2
(blue)
4
(alpha)
8
You can attach BitmapData objects to a MovieClip object by using the
MovieClip.attachBitmap()
You can use a BitmapData object to fill an area in a movie clip by using the
MovieClip.beginBitmapFill()
The maximum width and maximum height of a BitmapData object is 2880 pixels.
Availability: ActionScript 1.0; Flash Player 8
method or the
and
DisplacementMapFilter.componentY
method.
method.
BitmapData (flash.display.BitmapData)
291
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?