Image.Flags 屬性

定義

取得這個 Image 之像素資料的屬性旗標。Gets attribute flags for the pixel data of this Image.

public:
 property int Flags { int get(); };
[System.ComponentModel.Browsable(false)]
public int Flags { get; }
member this.Flags : int
Public ReadOnly Property Flags As Integer

屬性值

整數,表示這個 ImageFlagsImage 的位元組合。The integer representing a bitwise combination of ImageFlags for this Image.

屬性

備註

從這個方法傳回的整數值會對應至的總和ImageFlags,如下表所述。The integer value returned from this method will correspond to a sum of ImageFlags, as described in the following table.

ImageFlag 值ImageFlag value 整數標記法Integer representation
ImageFlagsNone 00
ImageFlagsScalable 11
ImageFlagsHasAlpha 22
ImageFlagsHasTranslucent 44
ImageFlagsPartiallyScalable 88
ImageFlagsColorSpaceRGB 1616
ImageFlagsColorSpaceCMYK 3232
ImageFlagsColorSpaceGRAY 6464
ImageFlagsColorSpaceYCBCR 128128
ImageFlagsColorSpaceYCCK 256256
ImageFlagsHasRealDPI 40964096
ImageFlagsHasRealPixelSize 81928192
ImageFlagsReadOnly 6553665536
ImageFlagsCaching 131072131072

例如,如果影像的Flags屬性傳回77960,則影像的ImageFlags會是ReadOnlyHasRealDpiHasRealPixelSizeColorSpaceYcbcrPartiallyScalableFor example, if the Flags property for an image returned 77960, the ImageFlags for the image would be ReadOnly, HasRealDpi, HasRealPixelSize, ColorSpaceYcbcr, and PartiallyScalable.

適用於