UNPKG

@awayjs/stage

Version:
68 lines 1.7 kB
import { Rectangle } from '@awayjs/core'; import { ImageBase } from './ImageBase'; export declare class Image2D extends ImageBase { static assetType: string; protected _rect: Rectangle; protected _alphaChannel: Uint8Array; protected _powerOfTwo: boolean; /** * * @returns {string} */ get assetType(): string; getImageType(): string; /** * The height of the image in pixels. */ get height(): number; set height(value: number); get alphaChannel(): Uint8Array; set alphaChannel(value: Uint8Array); /** * The rectangle that defines the size and location of the bitmap image. The * top and left of the rectangle are 0; the width and height are equal to the * width and height in pixels of the BitmapData object. */ get rect(): Rectangle; /** * The width of the bitmap image in pixels. */ get width(): number; set width(value: number); /** * */ constructor(width: number, height: number, powerOfTwo?: boolean); /** * * @param width * @param height * @private */ _setSize(width: number, height: number): void; /** * * @private */ private _testDimensions; /** * Enable POT texture size validation * @returns {boolean} */ get powerOfTwo(): boolean; set powerOfTwo(value: boolean); } import { _Stage_ImageBase } from './ImageBase'; /** * * @class away.pool.ImageStateBase */ export declare class _Stage_Image2D extends _Stage_ImageBase { /** * * @param context * @returns {ITexture} */ protected _createTexture(): void; } //# sourceMappingURL=Image2D.d.ts.map