Duplicates this object, creating a new object with an exact copy of the contained bitmap.
BitmapData
Represents an image as a matrix of pixell.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| Number | readonly | ||
| Number | readonly | A 32-bit Adler checksum of the image data. | |
| Number | readonly | ||
| Number | readonly | Image height in pixels. | |
| Number | readonly | A pointer to the buffer storing the matrix of pixels. | |
| Array | readonly | The rectangle that defines the size of the bitmap image, in the format [0, 0, w, h]. Origin is top left. | |
| Number | readonly | The length in bytes of a row of pixels. | |
| Boolean | readonly | True if the bitmap image supports per-pixel transparency. | |
| Number | readonly | Image width in pixels. |
Methods
Explicitly frees the memory used to store pixel data for this object.
Writes the image data to a file in JPEG format.
Retrieves the color data for a specific pixel from the image.
Retrieves the color data for a specific pixel from the image, including its alpha channel.
Loads the JPEG stream at a memory address into this object, replacing the previous content.
Loads the PNG stream at a memory address into this object, replacing the previous content.
Resizes the bitmap to the specified dimensions.
Rotates the bitmap by the specified multiple of 90 degrees.
Sets the color data for a specific pixel from the image.
Sets the color data for a specific pixel from the image, including its alpha channel.
Return 3
Methods that return a BitmapData.