Partager via


CImage::GetBPP

Retrieves the bits-per-pixel value.

int GetBPP( ) const throw( );

Return Value

The number of bits per pixel.

Remarks

This value determines the number of bits that define each pixel and the maximum number of colors in the bitmap.

The bits per pixel is usually 1, 4, 8, 16, 24, or 32. See the biBitCount member of BITMAPINFOHEADER in the Windows SDK for more information about this value.

Requirements

Header: atlimage.h

See Also

Concepts

CImage Class

CImage Members

CImage::GetPixelAddress

CImage::GetBits

CImage::GetDC