System.Drawing.Image.Flags Property

Gets attribute flags for the pixel data of this System.Drawing.Image.

Syntax

[System.ComponentModel.Browsable(false)]
public int Flags { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The integer value returned from this method will correspond to a sum of System.Drawing.Imaging.ImageFlags, as described in the following table.

ImageFlagsNone

0

ImageFlagsScalable

1

ImageFlagsHasAlpha

2

ImageFlagsHasTranslucent

4

ImageFlagsPartiallyScalable

8

ImageFlagsColorSpaceRGB

16

ImageFlagsColorSpaceCMYK

32

ImageFlagsColorSpaceGRAY

64

ImageFlagsColorSpaceYCBCR

128

ImageFlagsColorSpaceYCCK

256

ImageFlagsHasRealDPI

4096

ImageFlagsHasRealPixelSize

8192

ImageFlagsReadOnly

65536

ImageFlagsCaching

131072

For example, if the Image.Flags property for an image returned 77960, the System.Drawing.Imaging.ImageFlags for the image would be System.Drawing.Imaging.ImageFlags.ReadOnly, System.Drawing.Imaging.ImageFlags.HasRealDpi, System.Drawing.Imaging.ImageFlags.HasRealPixelSize, System.Drawing.Imaging.ImageFlags.ColorSpaceYcbcr, and System.Drawing.Imaging.ImageFlags.PartiallyScalable.

Requirements

Namespace: System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0