Image.Flags Property
Assembly: System.Drawing (in system.drawing.dll)
'Declaration Public ReadOnly Property Flags As Integer 'Usage Dim instance As Image Dim value As Integer value = instance.Flags
/** @property */ public int get_Flags ()
public function get Flags () : int
Not applicable.
Property Value
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.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.