Class createjs.Bitmap
Extends
.
Defined in: bitmap.js.
Constructor Attributes | Constructor Name and Description |
---|---|
createjs.Bitmap(value)
A class that encapsulates an
|
Method Attributes | Method Name and Description |
---|---|
getImage()
Returns the HTMLImageElement object associated with this bitmap.
|
|
Returns the source rectangle of this bitmap.
|
|
handleAttach(flag)
|
|
handleEvent(event)
|
|
hitTestObject(point, types, bubble)
|
|
paintObject(renderer)
|
|
removeAllChildren(opt_destroy)
|
|
setImage(image)
Changes the HTMLImageElement object associated with this bitmap.
|
|
setSourceRect(rectangle)
Sets the source rectangle.
|
Method Detail
{HTMLImageElement}
getImage()
Returns the HTMLImageElement object associated with this bitmap.
- Returns:
- {HTMLImageElement}
{createjs.Rectangle}
getSourceRect()
Returns the source rectangle of this bitmap.
- Returns:
- {createjs.Rectangle}
handleAttach(flag)
- Parameters:
- flag
handleDetach()
handleEvent(event)
- Parameters:
- event
hitTestObject(point, types, bubble)
- Parameters:
- point
- types
- bubble
isVisible()
paintObject(renderer)
- Parameters:
- renderer
removeAllChildren(opt_destroy)
- Parameters:
- opt_destroy
setImage(image)
Changes the HTMLImageElement object associated with this bitmap.
- Parameters:
- {HTMLImageElement} image
setSourceRect(rectangle)
Sets the source rectangle.
- Parameters:
- {createjs.Rectangle} rectangle