Constructor
new ImageGraphics()
- Source:
Iterates a new "ImageGraphics" Element.
Methods
cropRect(x, y, w, h) → {Pixel.Sprite}
- Source:
Crops image based on x, y, width, and height.
Parameters:
Name | Type | Description |
---|---|---|
x |
number | X position of crop. |
y |
number | Y position of crop. |
w |
number | Width of crop. |
h |
number | Height of crop. |
Returns:
- Type
- Pixel.Sprite
loadImage(url) → {Promise}
- Source:
Loads image based on url.
Parameters:
Name | Type | Description |
---|---|---|
url |
string | URL of Image Element. |
Returns:
- Type
- Promise