ImageFlags enumeration

Applies to: desktop apps only

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  {
  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 
} ImageFlags;

Constants

ImageFlagsNone

Specifies no format information.

ImageFlagsScalable

Specifies that the image can be scaled.

ImageFlagsHasAlpha

Specifies that the pixel data contains alpha values.

ImageFlagsHasTranslucent

Specifies that the pixel data has alpha values other than 0 (transparent) and 255 (opaque).

ImageFlagsPartiallyScalable

Specifies that the pixel data is partially scalable with some limitations.

ImageFlagsColorSpaceRGB

Specifies that the image is stored using an RGB color space.

ImageFlagsColorSpaceCMYK

Specifies that the image is stored using a CMYK color space.

ImageFlagsColorSpaceGRAY

Specifies that the image is a grayscale image.

ImageFlagsColorSpaceYCBCR

Specifies that the image is stored using a YCBCR color space.

ImageFlagsColorSpaceYCCK

Specifies that the image is stored using a YCCK color space.

ImageFlagsHasRealDPI

Specifies that dots per inch information is stored in the image.

ImageFlagsHasRealPixelSize

Specifies that the pixel size is stored in the image.

ImageFlagsReadOnly

Specifies that the pixel data is read-only.

ImageFlagsCaching

Specifies that the pixel data can be cached for faster access.

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusimaging.h (include Gdiplus.h)

See also

Image::GetFlags

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show: