image source or URL
Optional
options: IImageResourceOptionsOptional
alphaMode?: ALPHA_MODESPremultiply image alpha in bitmap.
Optional
autoLoad?: booleanStart loading process automatically when constructed.
Optional
createBitmap?: booleanWhether its required to create a bitmap before upload.
Optional
crossorigin?: string | booleanLoad image using cross origin.
Readonly
alphaControls texture alphaMode field
Copies from options
Default is null
, copies option from baseTexture
The ImageBitmap element created for a HTMLImageElement.
If capable, convert the image using createImageBitmap API.
Readonly
destroyedIf resource has been destroyed.
true
if resource is created by BaseTexture
useful for doing cleanup with BaseTexture destroy
and not cleaning up resources that were created
externally.
If the image should be disposed after upload
Readonly
sourceThe source element.
The url of the resource
URL of the image source
The height of the resource.
Has been validated
The width of the resource.
Bind to a parent BaseTexture
Parent texture
Returns a promise when image will be loaded and processed.
Optional
createBitmap: booleanwhether process image into bitmap
Called when we need to convert image into BitmapImage. Can be called multiple times, real promise is cached inside.
Set the style, optional to override
yeah, renderer!
the texture
texture instance for this webgl context
true
is successUnbind to a parent BaseTexture
Parent texture
Upload the image resource to GPU.
Renderer to upload to
BaseTexture for this resource
GLTexture to use
true is success
Static
crossSet cross origin based detecting the url and the crossorigin
Element to apply crossOrigin
URL to check
Optional
crossorigin: string | booleanCross origin value to use
Static
test
Resource type for HTMLImageElement.
Memberof
PIXI