Canvas element to use
The height of the resource.
Has been validated
The width of the resource.
Bind to a parent BaseTexture
Parent texture
Call when destroying resource, unbind any BaseTexture object before calling this method, as reference counts are maintained internally.
Destroy this BaseImageResource
This can be overridden to start preloading a resource or do any other prepare step.
Handle the validate event
Trigger a resize event
X dimension
Y dimension
Set the style, optional to override
true
is success
Unbind to a parent BaseTexture
Parent texture
Checks if source width/height was changed, resize can cause extra baseTexture update. Triggers one update in any case.
Upload the texture to the GPU.
Upload to the renderer
Reference to parent texture
true is success
Set cross origin based detecting the url and the crossorigin
Element to apply crossOrigin
URL to check
Used to auto-detect the type of resource.
The source object
true
if source is HTMLCanvasElement or OffscreenCanvas
Generated using TypeDoc
Resource type for HTMLCanvasElement.
PIXI