This documentation is archived and is not being maintained.

ImageFlags Enumeration

Specifies the attributes of the pixel data contained in an Image object. The Image.Flags property returns a member of this enumeration.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[Visual Basic]
Public Enum ImageFlags
public enum ImageFlags
__value public enum ImageFlags
enum ImageFlags


Member name Description Value
Caching The pixel data can be cached for faster access. 131072
ColorSpaceCmyk The pixel data uses a CMYK color space. 32
ColorSpaceGray The pixel data is grayscale. 64
ColorSpaceRgb The pixel data uses an RGB color space. 16
ColorSpaceYcbcr Specifies that the image is stored using a YCBCR color space. 128
ColorSpaceYcck Specifies that the image is stored using a YCCK color space. 256
HasAlpha The pixel data contains alpha information. 2
HasRealDpi Specifies that dots per inch information is stored in the image. 4096
HasRealPixelSize Specifies that the pixel size is stored in the image. 8192
HasTranslucent Specifies that the pixel data has alpha values other than 0 (transparent) and 255 (opaque). 4
None There is no format information. 0
PartiallyScalable The pixel data is partially scalable, but there are some limitations. 8
ReadOnly The pixel data is read-only. 65536
Scalable The pixel data is scalable. 1


Namespace: System.Drawing.Imaging

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Drawing (in System.Drawing.dll)

See Also

System.Drawing.Imaging Namespace