BaseTexture.fromCanvas()

<static> fromCanvas(canvas, scaleMode) → {PIXI.BaseTexture} Helper function that creates a base texture from the given canvas element. Parameters Name Type Description canvas Canvas The canvas element source of the texture scaleMode Number See {{#crossLink "PIXI/scaleModes:property"}}PIXI.scaleModes{{/crossLink}} for possible values Returns PIXI.BaseTexture - Source code: pixi/textures/BaseTexture.js (Line 224)

BaseTexture#updateSourceImage()

updateSourceImage(newSrc) This method is deprecated and should not be used. It may be removed in the future. Changes the source image of the texture Parameters Name Type Description newSrc String the path of the image Deprecated: true Source code: pixi/textures/BaseTexture.js (Line 171)

BaseTexture#width

[readonly] width : number [read-only] The width of the base texture set when the image has loaded Source code: pixi/textures/BaseTexture.js (Line 24)

BaseTexture#skipRender

skipRender : boolean A BaseTexture can be set to skip the rendering phase in the WebGL Sprite Batch. You may want to do this if you have a parent Sprite with no visible texture (i.e. uses the internal __default texture)that has children that you do want to render, without causing a batch flush in the process. Source code: pixi/textures/BaseTexture.js (Line 115)

BaseTexture#source

source :Image The image source that is used to create the texture. Source code: pixi/textures/BaseTexture.js (Line 60)

BaseTexture#unloadFromGPU()

unloadFromGPU() Removes the base texture from the GPU, useful for managing resources on the GPU.Atexture is still 100% usable and will simply be reuploaded if there is a sprite on screen that is using it. Source code: pixi/textures/BaseTexture.js (Line 196)

BaseTexture#resolution

resolution : number The Resolution of the texture. Source code: pixi/textures/BaseTexture.js (Line 16)

BaseTexture#premultipliedAlpha

premultipliedAlpha : boolean Controls if RGB channels should be pre-multiplied by Alpha (WebGL only) Default Value true Source code: pixi/textures/BaseTexture.js (Line 68)

BaseTexture#scaleMode

scaleMode : number The scale mode to apply when scaling this texture Default Value PIXI.scaleModes.LINEAR Source code: pixi/textures/BaseTexture.js (Line 42)

BaseTexture#mipmap

mipmap : boolean Set this to true if a mipmap of this texture needs to be generated. This value needs to be set before the texture is usedAlso the texture must be a power of two size to work Source code: pixi/textures/BaseTexture.js (Line 86)