Pixel formats:


Lib.Media.Image.PixelFormat.pfNone

None

Lib.Media.Image.PixelFormat.pfRGB

3 Bytes per pixel

Lib.Media.Image.PixelFormat.pfBGRA

0xAARRGGBB on little-endian, This can generally be loaded right into the GPU

Lib.Media.Image.PixelFormat.pfBGRPremA

Has the B,G,R components multiplied by A

Lib.Media.Image.PixelFormat.pfAlpha

8-bit alpha

Lib.Media.Image.PixelFormat.pfRenderToCount

The first 4 pixel formats are supported as render sources/ render distinctions

Lib.Media.Image.PixelFormat.pfLuma


Lib.Media.Image.PixelFormat.pfLumaAlpha


Lib.Media.Image.PixelFormat.pfRGB32f


Lib.Media.Image.PixelFormat.pfRGBA32f


Lib.Media.Image.PixelFormat.pfRGBPremA

These formats are only used to transfer data to the GPU on systems that do not support the preferred pfBGRPremA format

Lib.Media.Image.PixelFormat.pfRGBA

Lib.Media.Image.PixelFormat.pfUInt16

These ones can't actually be displayed

Lib.Media.Image.PixelFormat.pfUInt32


Static methods:

Lib.Media.Image.PixelFormat.channelCount(inFormat)

Returns channels count (Int)

inFormat - Int, PixelFormat

Lib.Media.Image.PixelFormat.getPixelSize(inFormat)

Returns pixel size (Int)

inFormat - Int, PixelFormat

Created with the Personal Edition of HelpNDoc: Easy to use tool to create HTML Help files and Help web sites