image source or URL
Optionaloptions: IImageResourceOptionsOptionalalphaMode?: ALPHA_MODESPremultiply image alpha in bitmap.
OptionalautoLoad?: booleanStart loading process automatically when constructed.
OptionalcreateBitmap?: booleanWhether its required to create a bitmap before upload.
Optionalcrossorigin?: string | booleanLoad image using cross origin.
ReadonlyalphaControls 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.
ReadonlydestroyedIf 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
ReadonlysourceThe 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.
Call when destroying resource, unbind any BaseTexture object before calling this method, as reference counts are maintained internally.
Destroys this resource.
Returns a promise when image will be loaded and processed.
OptionalcreateBitmap: booleanwhether process image into bitmap
Called when we need to convert image into BitmapImage. Can be called multiple times, real promise is cached inside.
Trigger a resize event
X dimension
Y dimension
Set the style, optional to override
yeah, renderer!
the texture
texture instance for this webgl context
true is successChecks if source width/height was changed, resize can cause extra baseTexture update. Triggers one update in any case.
Upload the image resource to GPU.
Renderer to upload to
BaseTexture for this resource
GLTexture to use
true is success
StaticcrossSet cross origin based detecting the url and the crossorigin
Element to apply crossOrigin
URL to check
Optionalcrossorigin: string | booleanCross origin value to use
StatictestUsed to auto-detect the type of resource.
The source object
true if current environment support HTMLImageElement, and source is string or HTMLImageElement
Resource type for HTMLImageElement.
Memberof
PIXI