Interface IGLTexturePixelStore

像素解包打包时参数。

Hierarchy

  • IGLTexturePixelStore

Properties

packAlignment?: 2 | 1 | 4 | 8

Packing of pixel data into memory

gl.PACK_ALIGNMENT

默认值为 4 。

packRowLength?: number

Number of pixels in a row.

gl.PACK_ROW_LENGTH

默认值为 0 。

仅 WebGL2。

packSkipPixels?: number

Number of pixel locations skipped before the first pixel is written into memory.

gl.PACK_SKIP_PIXELS

默认值为 0 。

仅 WebGL2。

packSkipRows?: number

Number of rows of pixel locations skipped before the first pixel is written into memory

gl.PACK_SKIP_ROWS

默认值为 0 。

仅 WebGL2。

unpackAlignment?: 2 | 1 | 4 | 8

Unpacking of pixel data from memory.

gl.UNPACK_ALIGNMENT

默认值为 4 。

unpackColorSpaceConversion?: "BROWSER_DEFAULT_WEBGL" | "NONE"

Default color space conversion or no color space conversion.

gl.UNPACK_COLORSPACE_CONVERSION_WEBGL

默认为 "BROWSER_DEFAULT_WEBGL" 。

unpackFlipY?: boolean

解包图像数据时进行Y轴反转。

Flips the source data along its vertical axis if true.

gl.UNPACK_FLIP_Y_WEBGL

默认为 false。

unpackImageHeight?: number

Image height used for reading pixel data from memory

gl.UNPACK_IMAGE_HEIGHT

默认值为 0 。

仅 WebGL2。

unpackPremulAlpha?: boolean

将图像RGB颜色值得每一个分量乘以A。

Multiplies the alpha channel into the other color channels

gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL

默认为 false。

unpackRowLength?: number

Number of pixels in a row.

gl.UNPACK_ROW_LENGTH

默认值为 0 。

仅 WebGL2。

unpackSkipImages?: number

Number of pixel images skipped before the first pixel is read from memory

gl.UNPACK_SKIP_IMAGES

默认值为 0 。

仅 WebGL2。

unpackSkipPixels?: number

Number of pixel images skipped before the first pixel is read from memory

gl.UNPACK_SKIP_PIXELS

默认值为 0 。

仅 WebGL2。

unpackSkipRows?: number

Number of rows of pixel locations skipped before the first pixel is read from memory

gl.UNPACK_SKIP_ROWS

默认值为 0 。

仅 WebGL2。

Generated using TypeDoc