PIXI.ImageBitmapResource
class ImageBitmapResource extends PIXI.BaseImageResource
Resource type for ImageBitmap.
Constructor
new PIXI.ImageBitmapResource(source: ImageBitmap) → {}
Name | Type | Description |
---|---|---|
source | ImageBitmap |
Image element to use |
Summary
Methods from ImageBitmapResource
boolean |
|
Properties inherited from BaseImageResource
HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | SVGElement |
|
Properties inherited from Resource
boolean |
|
number |
|
boolean |
|
string |
The url of the resource |
boolean |
|
number |
|
number |
Internal height of the resource. |
number |
Internal width of the resource. |
Methods inherited from BaseImageResource
void |
Destroy this BaseImageResource |
void |
|
boolean |
|
Methods inherited from Resource
void |
|
void |
|
void |
|
boolean |
|
void |
|
Promise<PIXI.Resource> |
|
Public Methods
static test(source: unknown) → {boolean}
Used to auto-detect the type of resource.
Name | Type | Description |
---|---|---|
source | unknown |
The source object |
Type | Description |
---|---|
boolean |
|