📄 gdipapi.pas
字号:
HatchStyleLightUpwardDiagonal, // = 19,
HatchStyleDarkDownwardDiagonal, // = 20,
HatchStyleDarkUpwardDiagonal, // = 21,
HatchStyleWideDownwardDiagonal, // = 22,
HatchStyleWideUpwardDiagonal, // = 23,
HatchStyleLightVertical, // = 24,
HatchStyleLightHorizontal, // = 25,
HatchStyleNarrowVertical, // = 26,
HatchStyleNarrowHorizontal, // = 27,
HatchStyleDarkVertical, // = 28,
HatchStyleDarkHorizontal, // = 29,
HatchStyleDashedDownwardDiagonal, // = 30,
HatchStyleDashedUpwardDiagonal, // = 31,
HatchStyleDashedHorizontal, // = 32,
HatchStyleDashedVertical, // = 33,
HatchStyleSmallConfetti, // = 34,
HatchStyleLargeConfetti, // = 35,
HatchStyleZigZag, // = 36,
HatchStyleWave, // = 37,
HatchStyleDiagonalBrick, // = 38,
HatchStyleHorizontalBrick, // = 39,
HatchStyleWeave, // = 40,
HatchStylePlaid, // = 41,
HatchStyleDivot, // = 42,
HatchStyleDottedGrid, // = 43,
HatchStyleDottedDiamond, // = 44,
HatchStyleShingle, // = 45,
HatchStyleTrellis, // = 46,
HatchStyleSphere, // = 47,
HatchStyleSmallGrid, // = 48,
HatchStyleSmallCheckerBoard, // = 49,
HatchStyleLargeCheckerBoard, // = 50,
HatchStyleOutlinedDiamond, // = 51,
HatchStyleSolidDiamond, // = 52,
HatchStyleTotal // = 53,
);
const
HatchStyleLargeGrid = HatchStyleCross; // 4
HatchStyleMin = HatchStyleHorizontal;
HatchStyleMax = HatchStyleSolidDiamond;
type
THatchStyle = HatchStyle;
//--------------------------------------------------------------------------
// Dash style constants
//--------------------------------------------------------------------------
{$EXTERNALSYM DashStyle}
DashStyle = (
DashStyleSolid, // 0
DashStyleDash, // 1
DashStyleDot, // 2
DashStyleDashDot, // 3
DashStyleDashDotDot, // 4
DashStyleCustom // 5
);
TDashStyle = DashStyle;
//--------------------------------------------------------------------------
// Dash cap constants
//--------------------------------------------------------------------------
{$IFDEF DELPHI6_UP}
{$EXTERNALSYM DashCap}
DashCap = (
DashCapFlat = 0,
DashCapRound = 2,
DashCapTriangle = 3
);
TDashCap = DashCap;
{$ELSE}
{$EXTERNALSYM DashCap}
DashCap = Integer;
const
DashCapFlat = 0;
DashCapRound = 2;
DashCapTriangle = 3;
type
TDashCap = DashCap;
{$ENDIF}
//--------------------------------------------------------------------------
// Line cap constants (only the lowest 8 bits are used).
//--------------------------------------------------------------------------
{$IFDEF DELPHI6_UP}
{$EXTERNALSYM LineCap}
LineCap = (
LineCapFlat = 0,
LineCapSquare = 1,
LineCapRound = 2,
LineCapTriangle = 3,
LineCapNoAnchor = $10, // corresponds to flat cap
LineCapSquareAnchor = $11, // corresponds to square cap
LineCapRoundAnchor = $12, // corresponds to round cap
LineCapDiamondAnchor = $13, // corresponds to triangle cap
LineCapArrowAnchor = $14, // no correspondence
LineCapCustom = $ff, // custom cap
LineCapAnchorMask = $f0 // mask to check for anchor or not.
);
TLineCap = LineCap;
{$ELSE}
{$EXTERNALSYM LineCap}
LineCap = Integer;
const
LineCapFlat = 0;
LineCapSquare = 1;
LineCapRound = 2;
LineCapTriangle = 3;
LineCapNoAnchor = $10; // corresponds to flat cap
LineCapSquareAnchor = $11; // corresponds to square cap
LineCapRoundAnchor = $12; // corresponds to round cap
LineCapDiamondAnchor = $13; // corresponds to triangle cap
LineCapArrowAnchor = $14; // no correspondence
LineCapCustom = $ff; // custom cap
LineCapAnchorMask = $f0; // mask to check for anchor or not.
type
TLineCap = LineCap;
{$ENDIF}
//--------------------------------------------------------------------------
// Custom Line cap type constants
//--------------------------------------------------------------------------
{$EXTERNALSYM CustomLineCapType}
CustomLineCapType = (
CustomLineCapTypeDefault,
CustomLineCapTypeAdjustableArrow
);
TCustomLineCapType = CustomLineCapType;
//--------------------------------------------------------------------------
// Line join constants
//--------------------------------------------------------------------------
{$EXTERNALSYM LineJoin}
LineJoin = (
LineJoinMiter,
LineJoinBevel,
LineJoinRound,
LineJoinMiterClipped
);
TLineJoin = LineJoin;
//--------------------------------------------------------------------------
// Path point types (only the lowest 8 bits are used.)
// The lowest 3 bits are interpreted as point type
// The higher 5 bits are reserved for flags.
//--------------------------------------------------------------------------
{$IFDEF DELPHI6_UP}
{$Z1}
{$EXTERNALSYM PathPointType}
PathPointType = (
PathPointTypeStart = $00, // move
PathPointTypeLine = $01, // line
PathPointTypeBezier = $03, // default Bezier (= cubic Bezier)
PathPointTypePathTypeMask = $07, // type mask (lowest 3 bits).
PathPointTypeDashMode = $10, // currently in dash mode.
PathPointTypePathMarker = $20, // a marker for the path.
PathPointTypeCloseSubpath = $80, // closed flag
// Path types used for advanced path.
PathPointTypeBezier3 = $03 // cubic Bezier
);
TPathPointType = PathPointType;
{$Z4}
{$ELSE}
{$EXTERNALSYM PathPointType}
PathPointType = Byte;
const
PathPointTypeStart : Byte = $00; // move
PathPointTypeLine : Byte = $01; // line
PathPointTypeBezier : Byte = $03; // default Bezier (= cubic Bezier)
PathPointTypePathTypeMask : Byte = $07; // type mask (lowest 3 bits).
PathPointTypeDashMode : Byte = $10; // currently in dash mode.
PathPointTypePathMarker : Byte = $20; // a marker for the path.
PathPointTypeCloseSubpath : Byte = $80; // closed flag
// Path types used for advanced path.
PathPointTypeBezier3 : Byte = $03; // cubic Bezier
type
TPathPointType = PathPointType;
{$ENDIF}
//--------------------------------------------------------------------------
// WarpMode constants
//--------------------------------------------------------------------------
{$EXTERNALSYM WarpMode}
WarpMode = (
WarpModePerspective, // 0
WarpModeBilinear // 1
);
TWarpMode = WarpMode;
//--------------------------------------------------------------------------
// LineGradient Mode
//--------------------------------------------------------------------------
{$EXTERNALSYM LinearGradientMode}
LinearGradientMode = (
LinearGradientModeHorizontal, // 0
LinearGradientModeVertical, // 1
LinearGradientModeForwardDiagonal, // 2
LinearGradientModeBackwardDiagonal // 3
);
TLinearGradientMode = LinearGradientMode;
//--------------------------------------------------------------------------
// Region Comine Modes
//--------------------------------------------------------------------------
{$EXTERNALSYM CombineMode}
CombineMode = (
CombineModeReplace, // 0
CombineModeIntersect, // 1
CombineModeUnion, // 2
CombineModeXor, // 3
CombineModeExclude, // 4
CombineModeComplement // 5 (Exclude From)
);
TCombineMode = CombineMode;
//--------------------------------------------------------------------------
// Image types
//--------------------------------------------------------------------------
{$EXTERNALSYM ImageType}
ImageType = (
ImageTypeUnknown, // 0
ImageTypeBitmap, // 1
ImageTypeMetafile // 2
);
TImageType = ImageType;
//--------------------------------------------------------------------------
// Interpolation modes
//--------------------------------------------------------------------------
{$IFDEF DELPHI6_UP}
{$EXTERNALSYM InterpolationMode}
InterpolationMode = (
InterpolationModeInvalid = ord(QualityModeInvalid),
InterpolationModeDefault = ord(QualityModeDefault),
InterpolationModeLowQuality = ord(QualityModeLow),
InterpolationModeHighQuality = ord(QualityModeHigh),
InterpolationModeBilinear,
InterpolationModeBicubic,
InterpolationModeNearestNeighbor,
InterpolationModeHighQualityBilinear,
InterpolationModeHighQualityBicubic
);
TInterpolationMode = InterpolationMode;
{$ELSE}
{$EXTERNALSYM InterpolationMode}
InterpolationMode = Integer;
const
InterpolationModeInvalid = QualityModeInvalid;
InterpolationModeDefault = QualityModeDefault;
InterpolationModeLowQuality = QualityModeLow;
InterpolationModeHighQuality = QualityModeHigh;
InterpolationModeBilinear = 3;
InterpolationModeBicubic = 4;
InterpolationModeNearestNeighbor = 5;
InterpolationModeHighQualityBilinear = 6;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -