Image::GetPixelFormat method

The Image::GetPixelFormat method gets the pixel format of this Image object.

Syntax

PixelFormat GetPixelFormat(

);

Parameters

This method has no parameters.

Return Value

Type: Type: PixelFormat

This method returns an integer that indicates the pixel format of this Image object. The PixelFormat data type and constants that represent various pixel formats are defined in Gdipluspixelformats.h. For more information about pixel format constants, see Image Pixel Format Constants.

Requirements

   
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplusheaders.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See Also

Image

Image Pixel Format Constants

Types of Bitmaps

Using Images, Bitmaps, and Metafiles