Will return a base64 encoded string of this target. It works by calling
Extract.canvas and then running toDataURL on that.
Optionaltarget: RenderTexture | DisplayObjectA displayObject or renderTexture to convert. If left empty will use the main renderer
Optionalformat: stringImage format, e.g. "image/jpeg" or "image/webp".
Optionalquality: numberJPEG or Webp compression from 0 to 1. Default is 0.92.
Optionalframe: RectangleThe frame the extraction is restricted to.
Creates a Canvas element, renders this target to it and then returns it.
Optionaltarget: RenderTexture | DisplayObjectA displayObject or renderTexture to convert. If left empty will use the main renderer
Optionalframe: RectangleThe frame the extraction is restricted to.
Destroys the extract.
Will return a HTML Image of the target
Optionaltarget: RenderTexture | DisplayObjectA displayObject or renderTexture to convert. If left empty will use the main renderer
Optionalformat: stringImage format, e.g. "image/jpeg" or "image/webp".
Optionalquality: numberJPEG or Webp compression from 0 to 1. Default is 0.92.
Optionalframe: RectangleThe frame the extraction is restricted to.
Will return a one-dimensional array containing the pixel data of the entire texture in RGBA order, with integer values between 0 and 255 (included).
Optionaltarget: RenderTexture | DisplayObjectA displayObject or renderTexture to convert. If left empty will use the main renderer
Optionalframe: RectangleThe frame the extraction is restricted to.
This class provides renderer-specific plugins for exporting content from a renderer. For instance, these plugins can be used for saving an Image, Canvas element or for exporting the raw image data (pixels).
Do not instantiate these plugins directly. It is available from the
renderer.extractproperty.Example
Memberof
PIXI