Atlantis.RenderTarget Class
A render target is a graphics surface where we can draw
Constructor
Methods
getData
()
Object
Gets the image data of the canvas.
Returns:
Object:
Return the ImageData of the context.
setData
(
-
imageData
Set the image data of the canvas.
Parameters:
-
imageData
ObjectData to put in the canvas.
Get the context of the canvas used to draw.
Returns:
CanvasContext:
Return the canvas context.
clear
()
Clear the entire surface
getCanvas
()
HTMLCanvas
Gets the canvas used to draw.
Returns:
HTMLCanvas:
Return the canvas used to draw.
getHeight
()
Number
Gets the height of the drawing surface.
Returns:
Number:
Return the height of the drawing surface.
getWidth
()
Number
Gets the width of the drawing surface.
Returns:
Number:
Return the width of the drawing surface.
saveAsJpg
()
String
Save the content of the renderTarget to an image
Returns:
String:
Return a base64 of the image with mime type "image/jpg"