Class Bitmap
Extends
DisplayObject.
A Bitmap represents an Image, Canvas, or Video in the display list.
Defined in: Bitmap.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Bitmap(image)
Constructs a Bitmap object with the specified source image.
|
Field Attributes | Field Name and Description |
---|---|
<private> | |
<private> | |
The image to render.
|
- Fields borrowed from class DisplayObject:
- _activeContext, _cacheDraw, _cacheOffsetX, _cacheOffsetY, _restoreContext, _revertShadow, _revertX, _revertY, alpha, cacheCanvas, id, mouseEnabled, name, parent, regX, regY, rotation, scaleX, scaleY, shadow, visible, x, y
Method Attributes | Method Name and Description |
---|---|
cache()
Because the content of a Bitmap is already in a simple format, cache is unnecessary for Bitmap instances.
|
|
<private> |
init(image)
|
uncache()
Because the content of a Bitmap is already in a simple format, cache is unnecessary for Bitmap instances.
|
- Methods borrowed from class DisplayObject:
- applyShadow, clone, cloneProps, draw, getStage, revertContext, toString, updateContext
Class Detail
Bitmap(image)
Constructs a Bitmap object with the specified source image.
- Parameters:
- image
- The Image, Canvas, or Video to render to the display list.
Field Detail
<private>
_draw
<private>
_init
image
The image to render. This can be an Image, a Canvas, or a Video. *
Method Detail
cache()
Because the content of a Bitmap is already in a simple format, cache is unnecessary for Bitmap instances.
<private>
init(image)
- Parameters:
- image
uncache()
Because the content of a Bitmap is already in a simple format, cache is unnecessary for Bitmap instances.