📄 advgdip.hpp
字号:
};
class PASCALIMPLEMENTATION TGPFontCollection : public TGdiplusBase
{
typedef TGdiplusBase inherited;
protected:
void *nativeFontCollection;
Status lastResult;
Status __fastcall SetStatus(Status status);
public:
__fastcall TGPFontCollection(void);
__fastcall virtual ~TGPFontCollection(void);
};
class DELPHICLASS TGPFont;
class PASCALIMPLEMENTATION TGPFont : public TGdiplusBase
{
typedef TGdiplusBase inherited;
protected:
void *nativeFont;
Status lastResult;
void __fastcall SetNativeFont(void * Font);
Status __fastcall SetStatus(Status status);
public:
__fastcall TGPFont(void * font, Status status)/* overload */;
__fastcall TGPFont(TGPFontFamily* family, float emSize, int style, Unit_ unit_)/* overload */;
__fastcall virtual ~TGPFont(void);
};
class DELPHICLASS TGPBrush;
class PASCALIMPLEMENTATION TGPBrush : public TGdiplusBase
{
typedef TGdiplusBase inherited;
protected:
void *nativeBrush;
Status lastResult;
void __fastcall SetNativeBrush(void * nativeBrush);
Status __fastcall SetStatus(Status status);
public:
__fastcall TGPBrush(void * nativeBrush, Status status)/* overload */;
__fastcall TGPBrush(void)/* overload */;
__fastcall virtual ~TGPBrush(void);
};
class DELPHICLASS TGPSolidBrush;
class PASCALIMPLEMENTATION TGPSolidBrush : public TGPBrush
{
typedef TGPBrush inherited;
public:
__fastcall TGPSolidBrush(unsigned color)/* overload */;
__fastcall TGPSolidBrush(void)/* overload */;
public:
#pragma option push -w-inl
/* TGPBrush.Destroy */ inline __fastcall virtual ~TGPSolidBrush(void) { }
#pragma option pop
};
class DELPHICLASS TGPLinearGradientBrush;
class PASCALIMPLEMENTATION TGPLinearGradientBrush : public TGPBrush
{
typedef TGPBrush inherited;
public:
__fastcall TGPLinearGradientBrush(void)/* overload */;
__fastcall TGPLinearGradientBrush(const TGPRectF &rect, unsigned color1, unsigned color2, LinearGradientMode mode)/* overload */;
__fastcall TGPLinearGradientBrush(const TGPRect &rect, unsigned color1, unsigned color2, LinearGradientMode mode)/* overload */;
public:
#pragma option push -w-inl
/* TGPBrush.Destroy */ inline __fastcall virtual ~TGPLinearGradientBrush(void) { }
#pragma option pop
};
class DELPHICLASS TGPPen;
class PASCALIMPLEMENTATION TGPPen : public TGdiplusBase
{
typedef TGdiplusBase inherited;
protected:
void *nativePen;
Status lastResult;
void __fastcall SetNativePen(void * nativePen);
Status __fastcall SetStatus(Status status);
public:
__fastcall TGPPen(void * nativePen, Status status)/* overload */;
__fastcall TGPPen(unsigned color, float width)/* overload */;
__fastcall virtual ~TGPPen(void);
DashStyle __fastcall GetDashStyle(void);
Status __fastcall SetDashStyle(DashStyle dashStyle);
};
class DELPHICLASS TGPStringFormat;
class PASCALIMPLEMENTATION TGPStringFormat : public TGdiplusBase
{
typedef TGdiplusBase inherited;
protected:
void *nativeFormat;
Status lastError;
Status __fastcall SetStatus(Status newStatus);
void __fastcall Assign(TGPStringFormat* source);
public:
__fastcall TGPStringFormat(void * clonedStringFormat, Status status)/* overload */;
__fastcall TGPStringFormat(int formatFlags, Word language)/* overload */;
__fastcall virtual ~TGPStringFormat(void);
Status __fastcall SetAlignment(StringAlignment align);
StringAlignment __fastcall GetAlignment(void);
Status __fastcall SetLineAlignment(StringAlignment align);
StringAlignment __fastcall GetLineAlignment(void);
Status __fastcall SetHotkeyPrefix(HotkeyPrefix hotkeyPrefix);
HotkeyPrefix __fastcall GetHotkeyPrefix(void);
};
class DELPHICLASS TGPGraphicsPath;
class PASCALIMPLEMENTATION TGPGraphicsPath : public TGdiplusBase
{
typedef TGdiplusBase inherited;
protected:
void *nativePath;
Status lastResult;
void __fastcall SetNativePath(void * nativePath);
Status __fastcall SetStatus(Status status);
public:
__fastcall TGPGraphicsPath(void * nativePath)/* overload */;
__fastcall TGPGraphicsPath(FillMode fillMode)/* overload */;
__fastcall virtual ~TGPGraphicsPath(void);
Status __fastcall CloseFigure(void);
Status __fastcall AddLine(const TGPPointF &pt1, const TGPPointF &pt2)/* overload */;
Status __fastcall AddLine(float x1, float y1, float x2, float y2)/* overload */;
Status __fastcall AddArc(const TGPRectF &rect, float startAngle, float sweepAngle)/* overload */;
Status __fastcall AddArc(float x, float y, float width, float height, float startAngle, float sweepAngle)/* overload */;
Status __fastcall AddEllipse(const TGPRectF &rect)/* overload */;
Status __fastcall AddEllipse(float x, float y, float width, float height)/* overload */;
};
class DELPHICLASS TGPPathGradientBrush;
class PASCALIMPLEMENTATION TGPPathGradientBrush : public TGPBrush
{
typedef TGPBrush inherited;
public:
__fastcall TGPPathGradientBrush(TGPGraphicsPath* path);
Status __fastcall GetCenterColor(/* out */ unsigned &Color);
Status __fastcall SetCenterColor(unsigned color);
int __fastcall GetPointCount(void);
Status __fastcall GetSurroundColors(PARGB colors, int &count);
Status __fastcall SetSurroundColors(PARGB colors, int &count);
Status __fastcall GetCenterPoint(/* out */ TGPPointF &point)/* overload */;
Status __fastcall GetCenterPoint(/* out */ TGPPoint &point)/* overload */;
Status __fastcall SetCenterPoint(const TGPPointF &point)/* overload */;
Status __fastcall SetCenterPoint(const TGPPoint &point)/* overload */;
public:
#pragma option push -w-inl
/* TGPBrush.Destroy */ inline __fastcall virtual ~TGPPathGradientBrush(void) { }
#pragma option pop
};
#pragma option push -b
enum TGPImageFormat { ifUndefined, ifMemoryBMP, ifBMP, ifEMF, ifWMF, ifJPEG, ifPNG, ifGIF, ifTIFF, ifEXIF, ifIcon };
#pragma option pop
class DELPHICLASS TGPImage;
class PASCALIMPLEMENTATION TGPImage : public TGdiplusBase
{
typedef TGdiplusBase inherited;
protected:
void *nativeImage;
Status lastResult;
Status loadStatus;
void __fastcall SetNativeImage(void * nativeImage);
Status __fastcall SetStatus(Status status);
public:
__fastcall TGPImage(void * nativeImage, Status status)/* overload */;
__fastcall TGPImage(WideString filename, BOOL useEmbeddedColorManagement)/* overload */;
__fastcall TGPImage(_di_IStream stream, BOOL useEmbeddedColorManagement)/* overload */;
__fastcall virtual ~TGPImage(void);
TGPImageFormat __fastcall GetFormat(void);
unsigned __fastcall GetWidth(void);
unsigned __fastcall GetHeight(void);
};
class DELPHICLASS TGPGraphics;
class PASCALIMPLEMENTATION TGPGraphics : public TGdiplusBase
{
typedef TGdiplusBase inherited;
protected:
void *nativeGraphics;
Status lastResult;
void __fastcall SetNativeGraphics(void * graphics);
Status __fastcall SetStatus(Status status);
void * __fastcall GetNativeGraphics(void);
public:
__fastcall TGPGraphics(HDC hdc)/* overload */;
__fastcall virtual ~TGPGraphics(void);
void __fastcall Flush(FlushIntention intention = (FlushIntention)(0x0));
HDC __fastcall GetHDC(void);
void __fastcall ReleaseHDC(HDC hdc);
Status __fastcall SetTextRenderingHint(TextRenderingHint newMode);
TextRenderingHint __fastcall GetTextRenderingHint(void);
int __fastcall GetSmoothingMode(void);
Status __fastcall SetSmoothingMode(int smoothingMode);
Status __fastcall DrawPath(TGPPen* pen, TGPGraphicsPath* path);
Status __fastcall FillRectangle(TGPBrush* brush, const TGPRectF &rect)/* overload */;
Status __fastcall FillRectangle(TGPBrush* brush, float x, float y, float width, float height)/* overload */;
Status __fastcall DrawString(WideString string_, int length, TGPFont* font, const TGPRectF &layoutRect, TGPStringFormat* stringFormat, TGPBrush* brush)/* overload */;
Status __fastcall MeasureString(WideString string_, int length, TGPFont* font, const TGPRectF &layoutRect, TGPStringFormat* stringFormat, /* out */ TGPRectF &boundingBox, System::PInteger codepointsFitted = (void *)(0x0), System::PInteger linesFilled = (void *)(0x0))/* overload */;
Status __fastcall GetLastStatus(void);
Status __fastcall DrawImage(TGPImage* image, int x, int y)/* overload */;
Status __fastcall DrawImageRect(TGPImage* image, int x, int y, int w, int h)/* overload */;
};
//-- var, const, procedure ---------------------------------------------------
extern PACKAGE int GlowSpeed;
#define WINGDIPDLL "gdiplus.dll"
static const Shortint QualityModeInvalid = 0xffffffff;
static const Shortint QualityModeDefault = 0x0;
static const Shortint QualityModeLow = 0x1;
static const Shortint QualityModeHigh = 0x2;
static const int FontStyleRegular = 0x0;
static const int FontStyleBold = 0x1;
static const int FontStyleItalic = 0x2;
static const int FontStyleBoldItalic = 0x3;
static const int FontStyleUnderline = 0x4;
static const int FontStyleStrikeout = 0x8;
static const Shortint SmoothingModeInvalid = 0xffffffff;
static const Shortint SmoothingModeDefault = 0x0;
static const Shortint SmoothingModeHighSpeed = 0x1;
static const Shortint SmoothingModeHighQuality = 0x2;
static const Shortint SmoothingModeNone = 0x3;
static const Shortint SmoothingModeAntiAlias = 0x4;
extern PACKAGE GdiplusStartupInput StartupInput;
extern PACKAGE GdiplusStartupOutput StartupOutput;
extern PACKAGE unsigned gdiplusToken;
extern PACKAGE TGPPoint __fastcall MakePoint(int X, int Y)/* overload */;
extern PACKAGE TGPPointF __fastcall MakePoint(float X, float Y)/* overload */;
extern PACKAGE TGPRectF __fastcall MakeRect(float x, float y, float width, float height)/* overload */;
} /* namespace Advgdip */
using namespace Advgdip;
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // AdvGDIP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -