This documentation is archived and is not being maintained.

ImageFlags Enumeration

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

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

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

[FlagsAttribute]
public enum ImageFlags

Member nameDescription
NoneThere is no format information.
ScalableThe pixel data is scalable.
HasAlphaThe pixel data contains alpha information.
HasTranslucentSpecifies that the pixel data has alpha values other than 0 (transparent) and 255 (opaque).
PartiallyScalableThe pixel data is partially scalable, but there are some limitations.
ColorSpaceRgbThe pixel data uses an RGB color space.
ColorSpaceCmykThe pixel data uses a CMYK color space.
ColorSpaceGrayThe pixel data is grayscale.
ColorSpaceYcbcrSpecifies that the image is stored using a YCBCR color space.
ColorSpaceYcckSpecifies that the image is stored using a YCCK color space.
HasRealDpiSpecifies that dots per inch information is stored in the image.
HasRealPixelSizeSpecifies that the pixel size is stored in the image.
ReadOnlyThe pixel data is read-only.
CachingThe pixel data can be cached for faster access.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0
Show: