A Useful function that returns a texture of the display object that can then be used to create sprites This can be quite useful if your displayObject is complicated and needs to be reused multiple times.
The displayObject the object will be generated from.
Optional
options: IGenerateTextureOptionsGenerate texture options.
Optional
alphaMode?: ALPHA_MODESOptional
anisotropicLevel?: numberOptional
format?: FORMATSOptional
height?: numberOptional
mipmap?: MIPMAP_MODESOptional
multisample?: MSAA_QUALITYThe number of samples of the frame buffer. The default is the renderer's multisample.
Optional
pixiIdPrefix?: stringOptional
region?: RectangleThe region of the displayObject, that shall be rendered, if no region is specified, defaults to the local bounds of the displayObject.
Optional
resolution?: numberThe resolution / device pixel ratio of the texture being generated. The default is the renderer's resolution.
Optional
resourceOptions?: anyOptional
scaleMode?: SCALE_MODESOptional
target?: TARGETSOptional
type?: TYPESOptional
width?: numberOptional
wrapMode?: WRAP_MODESa shiny new texture of the display object passed in
System that manages the generation of textures from the renderer.
Memberof
PIXI