ImageFlags enumeration (gdiplusimaging.h)

The ImageFlags enumeration specifies the attributes of the pixel data contained in an Image object. The Image::GetFlags method returns an element of this enumeration.

Syntax

typedef enum ImageFlags {
  ImageFlagsNone = 0,
  ImageFlagsScalable = 0x0001,
  ImageFlagsHasAlpha = 0x0002,
  ImageFlagsHasTranslucent = 0x0004,
  ImageFlagsPartiallyScalable = 0x0008,
  ImageFlagsColorSpaceRGB = 0x0010,
  ImageFlagsColorSpaceCMYK = 0x0020,
  ImageFlagsColorSpaceGRAY = 0x0040,
  ImageFlagsColorSpaceYCBCR = 0x0080,
  ImageFlagsColorSpaceYCCK = 0x0100,
  ImageFlagsHasRealDPI = 0x1000,
  ImageFlagsHasRealPixelSize = 0x2000,
  ImageFlagsReadOnly = 0x00010000,
  ImageFlagsCaching = 0x00020000
} ;

Constants

 
ImageFlagsNone
Value: 0
Specifies no format information.
ImageFlagsScalable
Value: 0x0001
Specifies that the image can be scaled.
ImageFlagsHasAlpha
Value: 0x0002
Specifies that the pixel data contains alpha values.
ImageFlagsHasTranslucent
Value: 0x0004
Specifies that the pixel data has alpha values other than 0 (transparent) and 255 (opaque).
ImageFlagsPartiallyScalable
Value: 0x0008
Specifies that the pixel data is partially scalable with some limitations.
ImageFlagsColorSpaceRGB
Value: 0x0010
Specifies that the image is stored using an RGB color space.
ImageFlagsColorSpaceCMYK
Value: 0x0020
Specifies that the image is stored using a CMYK color space.
ImageFlagsColorSpaceGRAY
Value: 0x0040
Specifies that the image is a grayscale image.
ImageFlagsColorSpaceYCBCR
Value: 0x0080
Specifies that the image is stored using a YCBCR color space.
ImageFlagsColorSpaceYCCK
Value: 0x0100
Specifies that the image is stored using a YCCK color space.
ImageFlagsHasRealDPI
Value: 0x1000
Specifies that dots per inch information is stored in the image.
ImageFlagsHasRealPixelSize
Value: 0x2000
Specifies that the pixel size is stored in the image.
ImageFlagsReadOnly
Value: 0x00010000
Specifies that the pixel data is read-only.
ImageFlagsCaching
Value: 0x00020000
Specifies that the pixel data can be cached for faster access.

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header gdiplusimaging.h (include Gdiplus.h)

See also

Image::GetFlags