PixelFormat

The format of a pixel, i.e., the number of components it has and what they represent.
Properties:
Name Type Description
DEPTH_COMPONENT number A pixel format containing a depth value.
DEPTH_STENCIL number A pixel format containing a depth and stencil value, most often used with PixelDatatype.UNSIGNED_INT_24_8.
ALPHA number A pixel format containing an alpha channel.
RED number A pixel format containing a red channel
RG number A pixel format containing red and green channels.
RGB number A pixel format containing red, green, and blue channels.
RGBA number A pixel format containing red, green, blue, and alpha channels.
LUMINANCE number A pixel format containing a luminance (intensity) channel.
LUMINANCE_ALPHA number A pixel format containing luminance (intensity) and alpha channels.
RGB_DXT1 number A pixel format containing red, green, and blue channels that is DXT1 compressed.
RGBA_DXT1 number A pixel format containing red, green, blue, and alpha channels that is DXT1 compressed.
RGBA_DXT3 number A pixel format containing red, green, blue, and alpha channels that is DXT3 compressed.
RGBA_DXT5 number A pixel format containing red, green, blue, and alpha channels that is DXT5 compressed.
RGB_PVRTC_4BPPV1 number A pixel format containing red, green, and blue channels that is PVR 4bpp compressed.
RGB_PVRTC_2BPPV1 number A pixel format containing red, green, and blue channels that is PVR 2bpp compressed.
RGBA_PVRTC_4BPPV1 number A pixel format containing red, green, blue, and alpha channels that is PVR 4bpp compressed.
RGBA_PVRTC_2BPPV1 number A pixel format containing red, green, blue, and alpha channels that is PVR 2bpp compressed.
RGBA_ASTC number A pixel format containing red, green, blue, and alpha channels that is ASTC compressed.
RGB_ETC1 number A pixel format containing red, green, and blue channels that is ETC1 compressed.
RGB8_ETC2 number A pixel format containing red, green, and blue channels that is ETC2 compressed.
RGBA8_ETC2_EAC number A pixel format containing red, green, blue, and alpha channels that is ETC2 compressed.
RGBA_BC7 number A pixel format containing red, green, blue, and alpha channels that is BC7 compressed.

Members

static constant Cesium.PixelFormat.ALPHA : number

A pixel format containing an alpha channel.
Default Value: WebGLConstants.ALPHA

static constant Cesium.PixelFormat.DEPTH_COMPONENT : number

A pixel format containing a depth value.
Default Value: WebGLConstants.DEPTH_COMPONENT

static constant Cesium.PixelFormat.DEPTH_STENCIL : number

A pixel format containing a depth and stencil value, most often used with PixelDatatype.UNSIGNED_INT_24_8.
Default Value: WebGLConstants.DEPTH_STENCIL

static constant Cesium.PixelFormat.LUMINANCE : number

A pixel format containing a luminance (intensity) channel.
Default Value: WebGLConstants.LUMINANCE

static constant Cesium.PixelFormat.LUMINANCE_ALPHA : number

A pixel format containing luminance (intensity) and alpha channels.
Default Value: WebGLConstants.LUMINANCE_ALPHA

static constant Cesium.PixelFormat.RED : number

A pixel format containing a red channel
Default Value: WebGLConstants.RED

static constant Cesium.PixelFormat.RG : number

A pixel format containing red and green channels.
Default Value: WebGLConstants.RG

static constant Cesium.PixelFormat.RGB : number

A pixel format containing red, green, and blue channels.
Default Value: WebGLConstants.RGB

static constant Cesium.PixelFormat.RGB8_ETC2 : number

A pixel format containing red, green, and blue channels that is ETC2 compressed.
Default Value: WebGLConstants.COMPRESSED_RGB8_ETC2

static constant Cesium.PixelFormat.RGB_DXT1 : number

A pixel format containing red, green, and blue channels that is DXT1 compressed.
Default Value: WebGLConstants.COMPRESSED_RGB_S3TC_DXT1_EXT

static constant Cesium.PixelFormat.RGB_ETC1 : number

A pixel format containing red, green, and blue channels that is ETC1 compressed.
Default Value: WebGLConstants.COMPRESSED_RGB_ETC1_WEBGL

static constant Cesium.PixelFormat.RGB_PVRTC_2BPPV1 : number

A pixel format containing red, green, and blue channels that is PVR 2bpp compressed.
Default Value: WebGLConstants.COMPRESSED_RGB_PVRTC_2BPPV1_IMG

static constant Cesium.PixelFormat.RGB_PVRTC_4BPPV1 : number

A pixel format containing red, green, and blue channels that is PVR 4bpp compressed.
Default Value: WebGLConstants.COMPRESSED_RGB_PVRTC_4BPPV1_IMG

static constant Cesium.PixelFormat.RGBA : number

A pixel format containing red, green, blue, and alpha channels.
Default Value: WebGLConstants.RGBA

static constant Cesium.PixelFormat.RGBA8_ETC2_EAC : number

A pixel format containing red, green, blue, and alpha channels that is ETC2 compressed.
Default Value: WebGLConstants.COMPRESSED_RGBA8_ETC2_EAC

static constant Cesium.PixelFormat.RGBA_ASTC : number

A pixel format containing red, green, blue, and alpha channels that is ASTC compressed.
Default Value: WebGLConstants.COMPRESSED_RGBA_ASTC_4x4_WEBGL

static constant Cesium.PixelFormat.RGBA_BC7 : number

A pixel format containing red, green, blue, and alpha channels that is BC7 compressed.
Default Value: WebGLConstants.COMPRESSED_RGBA_BPTC_UNORM

static constant Cesium.PixelFormat.RGBA_DXT1 : number

A pixel format containing red, green, blue, and alpha channels that is DXT1 compressed.
Default Value: WebGLConstants.COMPRESSED_RGBA_S3TC_DXT1_EXT

static constant Cesium.PixelFormat.RGBA_DXT3 : number

A pixel format containing red, green, blue, and alpha channels that is DXT3 compressed.
Default Value: WebGLConstants.COMPRESSED_RGBA_S3TC_DXT3_EXT

static constant Cesium.PixelFormat.RGBA_DXT5 : number

A pixel format containing red, green, blue, and alpha channels that is DXT5 compressed.
Default Value: WebGLConstants.COMPRESSED_RGBA_S3TC_DXT5_EXT

static constant Cesium.PixelFormat.RGBA_PVRTC_2BPPV1 : number

A pixel format containing red, green, blue, and alpha channels that is PVR 2bpp compressed.
Default Value: WebGLConstants.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG

static constant Cesium.PixelFormat.RGBA_PVRTC_4BPPV1 : number

A pixel format containing red, green, blue, and alpha channels that is PVR 4bpp compressed.
Default Value: WebGLConstants.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.