<static> fromCanvas(canvas, scaleMode) → {
[readonly] width : number [read-only] The width of the base texture set when the image has
[readonly] height : number [read-only] The height of the base texture set when the image has
premultipliedAlpha : boolean Controls if RGB channels should be pre-multiplied by Alpha (WebGL only)
updateSourceImage(newSrc) This method is deprecated and should not be used. It may be removed in the future. Changes
skipRender : boolean A BaseTexture can be set to skip the rendering phase in the WebGL Sprite Batch. You may want to do
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
destroy() Destroys this base texture Source code:
source :Image The image source that is used to create the texture. Source
unloadFromGPU() Removes the base texture from the GPU, useful for managing resources on the GPU.Atexture is still 100% usable
Page 1 of 2