Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this._process = null;
/**
* If the image should be disposed after upload
* @member {boolean}
* @default false
*/
this.preserveBitmap = false;
/**
* If capable, convert the image using createImageBitmap API
* @member {boolean}
* @default PIXI.settings.CREATE_IMAGE_BITMAP
*/
this.createBitmap = (options.createBitmap !== undefined
? options.createBitmap : settings.CREATE_IMAGE_BITMAP) && !!window.createImageBitmap;
/**
* Controls texture alphaMode field
* Copies from options
* Default is `null`, copies option from baseTexture
*
* @member {PIXI.ALPHA_MODES|null}
* @readonly
*/
this.alphaMode = typeof options.alphaMode === 'number' ? options.alphaMode : null;
if (options.premultiplyAlpha !== undefined)
{
// triggers deprecation
this.premultiplyAlpha = options.premultiplyAlpha;
}