interface TextureExtractionOptions {
    texture: any;
    frame: Rectangle;
    compression: {
        NONE: number;
        BASE64: number;
    };
    type: string;
    quality: string;
    debug: boolean;
}

Properties

texture: any

The texture the pixels are extracted from. Otherwise, extract from the renderer.

frame: Rectangle

The rectangle which the pixels are extracted from.

compression: {
    NONE: number;
    BASE64: number;
}

The compression mode to apply, or NONE

Type declaration

  • NONE: number
  • BASE64: number
type: string

The optional image mime type.

quality: string

The optional image quality.

debug: boolean

The optional debug flag to use.