- When
source
isImageBitmap
, the underlying ImageBitmap is not owned by default. - When
source
isstring
(a URL), the underlying ImageBitmap is owned by default.
Properties:
Name | Type | Description |
---|---|---|
alphaMode |
PIXI.ALPHA_MODES |
Alpha mode used when creating the ImageBitmap. |
autoLoad |
boolean |
Start loading process automatically when constructed. |
crossOrigin |
boolean |
Load image using cross origin. |
ownsImageBitmap |
boolean |
Whether the underlying ImageBitmap is owned by the PIXI.ImageBitmapResource. When set to |
Members
alphaMode PIXI.ALPHA_MODES
Alpha mode used when creating the ImageBitmap.
Start loading process automatically when constructed.
Load image using cross origin.
Whether the underlying ImageBitmap is owned by the PIXI.ImageBitmapResource. When set to true
,
the underlying ImageBitmap will be disposed automatically when disposing PIXI.ImageBitmapResource.
If this option is not set, whether it owns the underlying ImageBitmap is determained by the type of source
used when constructing PIXI.ImageBitmapResource:
- When
source
isImageBitmap
, the underlying ImageBitmap is not owned by default. - When
source
isstring
(a URL), the underlying ImageBitmap is owned by default.