ImageFlags Enum

Definition

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

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum ImageFlags
Inheritance
ImageFlags
Attributes

Fields

Name Value Description
None 0

There is no format information.

Scalable 1

The pixel data is scalable.

HasAlpha 2

The pixel data contains alpha information.

HasTranslucent 4

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

PartiallyScalable 8

The pixel data is partially scalable, but there are some limitations.

ColorSpaceRgb 16

The pixel data uses an RGB color space.

ColorSpaceCmyk 32

The pixel data uses a CMYK color space.

ColorSpaceGray 64

The pixel data is grayscale.

ColorSpaceYcbcr 128

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

ColorSpaceYcck 256

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

HasRealDpi 4096

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

HasRealPixelSize 8192

Specifies that the pixel size is stored in the image.

ReadOnly 65536

The pixel data is read-only.

Caching 131072

The pixel data can be cached for faster access.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9