Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Flags Property

Image.Flags Property

Gets attribute flags for the pixel data of this Image.

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

[<BrowsableAttribute(false)>]
member Flags : int with get

Property Value

Type: System.Int32
The integer representing a bitwise combination of ImageFlags for this Image.

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

ImageFlag value

Integer representation

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 Flags property for an image returned 77960, the ImageFlags for the image would be ReadOnly, HasRealDpi, HasRealPixelSize, ColorSpaceYcbcr, and PartiallyScalable.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft