The SmoothingMode enumeration specifies the type of smoothing (antialiasing) that is applied to lines and curves. This enumeration is used by the GdipGetSmoothingMode and GdipSetSmoothingMode functions.
C++ Syntax
typedef enum {
SmoothingModeInvalid = QualityModeInvalid,
SmoothingModeDefault = QualityModeDefault,
SmoothingModeHighSpeed = QualityModeLow,
SmoothingModeHighQuality = QualityModeHigh,
SmoothingModeNone,
SmoothingModeAntiAlias8x4,
SmoothingModeAntiAlias = SmoothingModeAntiAlias8x4,
SmoothingModeAntiAlias8x8
} SmoothingMode;
FreeBASIC 语法
enum
SmoothingModeInvalid = QualityModeInvalid
SmoothingModeDefault = QualityModeDefault
SmoothingModeHighSpeed = QualityModeLow
SmoothingModeHighQuality = QualityModeHigh
SmoothingModeNone = 3
SmoothingModeAntiAlias = 4
end enum
常数
SmoothingModeInvalid
Reserved.
SmoothingModeDefault
Specifies that smoothing is not applied.
SmoothingModeHighSpeed
Specifies that smoothing is not applied.
SmoothingModeHighQuality
Specifies that smoothing is applied using an 8 X 4 box filter.
SmoothingModeNone
Specifies that smoothing is not applied.
SmoothingModeAntiAlias8x4
Specifies that smoothing is applied using an 8 X 4 box filter.
SmoothingModeAntiAlias
Specifies that smoothing is applied using an 8 X 4 box filter.
SmoothingModeAntiAlias8x8
Specifies that smoothing is applied using an 8 X 8 box filter.
备注
Smoothing performed by an 8 X 4 box filter gives better results for nearly vertical lines than it does for nearly horizontal lines. Smoothing performed by an 8 X 8 box filter gives equally good results for nearly vertical and nearly horizontal lines. The 8x8 algorithm produces higher quality smoothing but is slower than the 8 X 4 algorithm.