[read-only] The base texture that holds the image.
Cache entry, for images. In all cases _url is the same as cacheEntry.key
[read-only] The bitmap canvas.
[read-only] The 2d context of the bitmap canvas.
The face name of the font.
Whether the font is italic.
The size of the font in pixels.
[read-only] The height of the bitmap.
The color of the outline of the text in CSS format.
The width of the outline of the text.
The opacity of the drawing object in the range (0, 255).
[read-only] The rectangle of the bitmap.
Whether the smooth scaling is applied.
The color of the text in CSS format.
[read-only] The url of the image file.
[read-only] The width of the bitmap.
FontNameText
Add a callback function that will be called when the bitmap is loaded.
The callback function
Changes the color tone of the entire bitmap.
The red strength in the range (-255, 255)
The green strength in the range (-255, 255)
The blue strength in the range (-255, 255)
Performs a block transfer.
The bitmap to draw
The x coordinate in the source
The y coordinate in the source
The width of the source image
The height of the source image
The x coordinate in the destination
The y coordinate in the destination
Performs a block transfer, using assumption that original image was not modified (no hue)
The bitmap to draw
The x coordinate in the source
The y coordinate in the source
The width of the source image
The height of the source image
The x coordinate in the destination
The y coordinate in the destination
Applies a blur effect to the bitmap.
Clears the entire bitmap.
Clears the specified rectangle.
The x coordinate for the upper-left corner
The y coordinate for the upper-left corner
The width of the rectangle to clear
The height of the rectangle to clear
Draw the filled circle.
The x coordinate of the center of the circle
The y coordinate of the center of the circle
The radius of the circle
The color of the circle in CSS format
Draws the outline text to the bitmap.
The text that will be drawn
The x coordinate for the left of the text
The y coordinate for the top of the text
The maximum allowed width of the text
The height of the text line
The alignment of the text
Fills the entire bitmap.
The color of the rectangle in CSS format
Fills the specified rectangle.
The x coordinate for the upper-left corner
The y coordinate for the upper-left corner
The width of the rectangle to clear
The height of the rectangle to clear
The color of the rectangle in CSS format
Returns alpha pixel value at the specified point.
The x coordinate of the pixel in the bitmap
The y coordinate of the pixel in the bitmap
The alpha value
Returns pixel color at the specified point.
The x coordinate of the pixel in the bitmap
The y coordinate of the pixel in the bitmap
The pixel color (hex format)
Draws the rectangle with a gradation.
The x coordinate for the upper-left corner
The y coordinate for the upper-left corner
The width of the rectangle to clear
The height of the rectangle to clear
The start color of the gradation
The end color of the gradation
Whether it draws a vertical gradient
Checks whether a loading error has occurred.
True if a loading error has occurred
Checks whether the bitmap is ready to render.
True if the bitmap is ready to render
Returns the width of the specified text.
The text to be measured
The width of the text in pixels
Resizes the bitmap.
The new width of the bitmap
The new height of the bitmap
Rotates the hue of the entire bitmap.
The hue offset in 360 degrees
touch the resource
Loads a image file and returns a new bitmap object.
The image url of the texture
Bitmap
Generated using TypeDoc
The basic object that represents an image.
Bitmap