ImageGear for C and C++ on Linux v19.10 - Updated
Pixel Formats
User Guide > File Formats and Compressions > File Formats > Pixel Formats

ImageGear supports the following pixel formats for raster images:

Color Space

Channel Depths (Bits per Channel)

Indexed RGB: 1…8 bits per pixel

1…8

RGB

1…32

Grayscale

1…32

IHS

1…32

HLS

1…32

LAB

1…32

YIQ

1…32

CMY

1…32

CMYK

1…32

YCbCr

1…32

YUV

1…32

Extra

1…32

RGB + Alpha

1…32

Grayscale + Alpha

1…32

RGB + Pre-multiplied Alpha

1…32

Grayscale + Pre-multiplied Alpha

1…32

Indexed RGB + Extra

1…8

RGB + Extra

1…32

Grayscale + Extra

1…32

IHS + Extra

1…32

HLS + Extra

1…32

LAB + Extra

1…32

YIQ + Extra

1…32

CMY + Extra

1…32

CMYK + Extra

1…32

YCbCr + Extra

1…32

YUV + Extra

1…32

RGB + Alpha + Extra

1…32

Grayscale + Alpha  + Extra

1…32

RGB + Pre-multiplied Alpha + Extra

1…32

Grayscale + Pre-multiplied Alpha  + Extra

1…32

Note that the "Channel Depths" column lists bits per channel rather than bits per pixel. For example, for an RGB image, 1…32 bits per channel corresponds to 3…96 bits per pixel.

ImageGear allows image channels to have different depths. For example, these channel depths are allowed: RGB (5, 6, 5); CMYK + Extra (8, 8, 8, 16).

Not all of ImageGear functions support all pixel formats. Please see the API Reference for information on supported raster image formats for specific functions.

Please see the File Formats Reference for information on which pixel formats are supported for reading and writing for each image file format and compression method.

See Also

Understanding Bitmap Images