The ImageFlags enumeration specifies the attributes of the pixel data contained in an image. The GdipGetImageFlags function returns an element of this enumeration.
C++ Syntax
typedef enum {
ImageFlagsNone = 0,
ImageFlagsScalable = 0x0001,
ImageFlagsHasAlpha = 0x0002,
ImageFlagsHasTranslucent = 0x0004,
ImageFlagsPartiallyScalable = 0x0008,
ImageFlagsColorSpaceRGB = 0x0010,
ImageFlagsColorSpaceCMYK = 0x0020,
ImageFlagsColorSpaceGRAY = 0x0040,
ImageFlagsColorSpaceYCBCR = 0x0080,
ImageFlagsColorSpaceYCCK = 0x0100,
ImageFlagsHasRealDPI = 0x1000,
ImageFlagsHasRealPixelSize = 0x2000,
ImageFlagsReadOnly = 0x00010000,
ImageFlagsCaching = 0x00020000
} ImageFlags;
FreeBASIC 语法
enum
ImageFlagsNone = 0
'// Low-word: shared with SINKFLAG_x
ImageFlagsScalable = &H00000001
ImageFlagsHasAlpha = &H00000002
ImageFlagsHasTranslucent = &H00000004
ImageFlagsPartiallyScalable = &H00000008
'// Low-word: color space definition
ImageFlagsColorSpaceRGB = &H00000010
ImageFlagsColorSpaceCMYK = &H00000020
ImageFlagsColorSpaceGRAY = &H00000040
ImageFlagsColorSpaceYCBCR = &H00000080
ImageFlagsColorSpaceYCCK = &H00000100
'// Low-word: image size info
ImageFlagsHasRealDPI = &H00001000
ImageFlagsHasRealPixelSize = &H00002000
'// High-word
ImageFlagsReadOnly = &H00010000
ImageFlagsCaching = &H00020000
end enum
常数
ImageFlagsNone
Specifies no format information.
ImageFlagsScalable
Specifies that the image can be scaled.
ImageFlagsHasAlpha
Specifies that the pixel data contains alpha values.
ImageFlagsHasTranslucent
Specifies that the pixel data has alpha values other than 0 (transparent) and 255 (opaque).
ImageFlagsPartiallyScalable
Specifies that the pixel data is partially scalable with some limitations.
ImageFlagsColorSpaceRGB
Specifies that the image is stored using an RGB color space.
ImageFlagsColorSpaceCMYK
Specifies that the image is stored using a CMYK color space.
ImageFlagsColorSpaceGRAY
Specifies that the image is a grayscale image.
ImageFlagsColorSpaceYCBCR
Specifies that the image is stored using a YCBCR color space.
ImageFlagsColorSpaceYCCK
Specifies that the image is stored using a YCCK color space.
ImageFlagsHasRealDPI
Specifies that dots per inch information is stored in the image.
ImageFlagsHasRealPixelSize
Specifies that the pixel size is stored in the image.
ImageFlagsReadOnly
Specifies that the pixel data is read-only.
ImageFlagsCaching
Specifies that the pixel data can be cached for faster access.