⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sgraphutils.hpp

📁 I mComputermaster programmisDelphi+pascal
💻 HPP
📖 第 1 页 / 共 2 页
字号:
extern PACKAGE void __fastcall PaintSkinControl(const Scommondata::TsCommonData* SkinData, const Controls::TControl* Parent, const bool Filling, const int State, const Types::TRect &R, const Types::TPoint &pP, const Graphics::TBitmap* ItemBmp, const bool UpdateCorners, const int OffsetX = 0x0, const int OffsetY = 0x0);
extern PACKAGE void __fastcall CopyChannel32(const Graphics::TBitmap* DstBmp, const Graphics::TBitmap* SrcBmp, const int Channel);
extern PACKAGE void __fastcall CopyChannel(const Graphics::TBitmap* Bmp32, const Graphics::TBitmap* Bmp8, const int Channel, const bool From32To8);
extern PACKAGE void __fastcall PaintControlByTemplate(const Graphics::TBitmap* DstBmp, const Graphics::TBitmap* SrcBmp, const Types::TRect &DstRect, const Types::TRect &SrcRect, const Types::TRect &BorderWidths, const Types::TRect &DrawModes, const bool StretchCenter);
extern PACKAGE void __fastcall DrawGlyphEx(Graphics::TBitmap* Glyph, Graphics::TBitmap* DstBmp, const Types::TRect &R, int NumGlyphs, bool Enabled, Sconst::TsDisabledGlyphKind DisabledGlyphKind, int State, int Blend, bool Down = false);
extern PACKAGE void __fastcall FillDC(const HDC DC, const Types::TRect &aRect, const Graphics::TColor Color);
extern PACKAGE void __fastcall FillDCBorder(const HDC DC, const Types::TRect &aRect, const int wl, const int wt, const int wr, const int wb, const Graphics::TColor Color);
extern PACKAGE void __fastcall BitBltBorder(const HDC DestDC, const int X, const int Y, const int Width, const int Height, const HDC SrcDC, const int XSrc, const int YSrc, const int BorderWidth);
extern PACKAGE void __fastcall ExcludeControls(const HDC DC, const Controls::TWinControl* Ctrl, const Sconst::TacCtrlType CtrlType, const int OffsetX, const int OffsetY);
extern PACKAGE void __fastcall GrayScale(Graphics::TBitmap* Bmp);
extern PACKAGE void __fastcall GrayScaleTrans(Graphics::TBitmap* Bmp, const Sconst::TsColor TransColor);
extern PACKAGE AnsiString __fastcall CutText(Graphics::TCanvas* Canvas, const AnsiString Text, int MaxLength);
extern PACKAGE void __fastcall WriteText(Graphics::TCanvas* Canvas, char * Text, bool Enabled, Types::TRect &aRect, unsigned Flags);
extern PACKAGE void __fastcall WriteTextOnDC(HDC DC, char * Text, bool Enabled, Types::TRect &aRect, unsigned Flags);
extern PACKAGE int __fastcall acDrawText(HDC hDC, const AnsiString Text, Types::TRect &lpRect, unsigned uFormat);
extern PACKAGE int __fastcall acTextWidth(const Graphics::TCanvas* Canvas, const AnsiString Text);
extern PACKAGE int __fastcall acTextHeight(const Graphics::TCanvas* Canvas, const AnsiString Text);
extern PACKAGE tagSIZE __fastcall acTextExtent(const Graphics::TCanvas* Canvas, const AnsiString Text);
extern PACKAGE void __fastcall acTextRect(const Graphics::TCanvas* Canvas, const Types::TRect &Rect, int X, int Y, const AnsiString Text);
extern PACKAGE void __fastcall acWriteTextEx(const Graphics::TCanvas* Canvas, char * Text, bool Enabled, Types::TRect &aRect, unsigned Flags, Scommondata::TsCommonData* SkinData, bool Hot, System::TObject* SkinManager = (System::TObject*)(0x0))/* overload */;
extern PACKAGE void __fastcall acWriteTextEx(const Graphics::TCanvas* Canvas, char * Text, bool Enabled, Types::TRect &aRect, unsigned Flags, int SkinIndex, bool Hot, System::TObject* SkinManager = (System::TObject*)(0x0))/* overload */;
extern PACKAGE void __fastcall acWriteText(const Graphics::TCanvas* Canvas, char * Text, bool Enabled, Types::TRect &aRect, unsigned Flags);
extern PACKAGE void __fastcall WriteTextEx(const Graphics::TCanvas* Canvas, char * Text, bool Enabled, Types::TRect &aRect, unsigned Flags, int SkinIndex, bool Hot, System::TObject* SkinManager = (System::TObject*)(0x0))/* overload */;
extern PACKAGE void __fastcall WriteTextEx(const Graphics::TCanvas* Canvas, char * Text, bool Enabled, Types::TRect &aRect, unsigned Flags, Scommondata::TsCommonData* SkinData, bool Hot)/* overload */;
extern PACKAGE void __fastcall FadeRect(Graphics::TCanvas* CanvasSrc, const Types::TRect &RSrc, HDC CanvasDst, const Types::TPoint &PDst, int Transparency, Graphics::TColor Color, int Blur, Sconst::TsShadowingShape Shape)/* overload */;
extern PACKAGE void __fastcall FadeRect(Graphics::TCanvas* CanvasSrc, const Types::TRect &RSrc, HDC CanvasDst, const Types::TPoint &PDst, int Transparency, Graphics::TColor Color, int Blur, Sconst::TsShadowingShape Shape, int Radius)/* overload */;
extern PACKAGE void __fastcall FadeBmp(Graphics::TBitmap* FadedBmp, const Types::TRect &aRect, int Transparency, Sconst::TsColor Color, int Blur, int Radius);
extern PACKAGE void __fastcall BlendTransRectangle(Graphics::TBitmap* Dst, int X, int Y, Graphics::TBitmap* Src, const Types::TRect &aRect, double Blend, Sconst::TsColor TransColor);
extern PACKAGE void __fastcall BlendTransBitmap(Graphics::TBitmap* Bmp, double Blend, Sconst::TsColor Color, Sconst::TsColor TransColor);
extern PACKAGE void __fastcall BlendBmpByMask(Graphics::TBitmap* SrcBmp, Graphics::TBitmap* MskBmp, Sconst::TsColor BlendColor);
extern PACKAGE void __fastcall SumBitmaps(Graphics::TBitmap* SrcBmp, Graphics::TBitmap* MskBmp, Sconst::TsColor Color);
extern PACKAGE void __fastcall SumBmpRect(const Graphics::TBitmap* DstBmp, const Graphics::TBitmap* SrcBmp, const Sconst::TsColor Color, const Types::TRect &SrcRect, const Types::TPoint &DstPoint);
extern PACKAGE void __fastcall CopyByMask(const Types::TRect &R1, const Types::TRect &R2, const Graphics::TBitmap* Bmp1, const Graphics::TBitmap* Bmp2, const Sconst::TCacheInfo &CI, const bool UpdateTrans)/* overload */;
extern PACKAGE void __fastcall CopyBmp32(const Types::TRect &R1, const Types::TRect &R2, const Graphics::TBitmap* Bmp1, const Graphics::TBitmap* Bmp2, const Sconst::TCacheInfo &CI, const bool UpdateTrans, const Graphics::TColor GrayedColor, const int Blend);
extern PACKAGE void __fastcall CopyByMask(const Types::TRect &R1, const Types::TRect &R2, const Graphics::TBitmap* Bmp1, const Graphics::TBitmap* Bmp2, const Sconst::TCacheInfo &CI, const bool UpdateTrans, const Smaskdata::TsMaskData &MaskData)/* overload */;
extern PACKAGE void __fastcall CopyTransBitmaps(Graphics::TBitmap* DstBmp, Graphics::TBitmap* SrcBmp, int X, int Y, Sconst::TsColor TransColor);
extern PACKAGE void __fastcall CopyTransRect(Graphics::TBitmap* DstBmp, Graphics::TBitmap* SrcBmp, int X, int Y, const Types::TRect &SrcRect, Graphics::TColor TransColor, const Sconst::TCacheInfo &CI, bool UpdateTrans);
extern PACKAGE void __fastcall CopyTransRectA(Graphics::TBitmap* DstBmp, Graphics::TBitmap* SrcBmp, int X, int Y, const Types::TRect &SrcRect, Graphics::TColor TransColor, const Sconst::TCacheInfo &CI);
extern PACKAGE void __fastcall CopyRect(Graphics::TBitmap* DstBmp, Graphics::TBitmap* SrcBmp, int X, int Y, const Types::TRect &aRect, Graphics::TColor TransColor);
extern PACKAGE void __fastcall SumBitmapsByMask(Graphics::TBitmap* &ResultBmp, Graphics::TBitmap* &Src1, Graphics::TBitmap* &Src2, Graphics::TBitmap* MskBmp, Word Percent = (Word)(0x0));
extern PACKAGE void __fastcall SumByMask(Graphics::TBitmap* &Src1, Graphics::TBitmap* &Src2, Graphics::TBitmap* &MskBmp, const Types::TRect &aRect);
extern PACKAGE void __fastcall GradientBmp(Graphics::TBitmap* Bmp, const Types::TRect &aRect, Sconst::TsColor Color1, Sconst::TsColor Color2, Sconst::TGradientTypes Layout, Sconst::TPercent Percent1, Sconst::TPercent Percent2, int Width);
extern PACKAGE Graphics::TBitmap* __fastcall CreateBmpLike(const Graphics::TBitmap* Bmp);
extern PACKAGE Graphics::TBitmap* __fastcall CreateBmp24(const int Width, const int Height);
extern PACKAGE Graphics::TBitmap* __fastcall CreateBmp32(const int Width, const int Height);
extern PACKAGE void __fastcall InitCI(Sconst::TCacheInfo &CI, Graphics::TBitmap* Bmp, int X = 0x0, int y = 0x0);
extern PACKAGE Graphics::TColor __fastcall ChangeColor(Graphics::TColor ColorBegin, Graphics::TColor ColorEnd, double i);
extern PACKAGE Sconst::TsColor __fastcall ColorToSColor(Graphics::TColor Color);
extern PACKAGE Sconst::TsColor __fastcall AverageColor(Sconst::TsColor ColorBegin, Sconst::TsColor ColorEnd)/* overload */;
extern PACKAGE Graphics::TColor __fastcall AverageColor(Graphics::TColor ColorBegin, Graphics::TColor ColorEnd)/* overload */;
extern PACKAGE Graphics::TColor __fastcall MixColors(Graphics::TColor Color1, Graphics::TColor Color2, double PercentOfColor1);
extern PACKAGE void __fastcall DrawRectangleOnDC(HDC DC, Types::TRect &R, Graphics::TColor ColorTop, Graphics::TColor ColorBottom, int &Width);
extern PACKAGE void __fastcall TileBitmap(Graphics::TCanvas* Canvas, const Types::TRect &aRect, Graphics::TGraphic* Graphic)/* overload */;
extern PACKAGE void __fastcall TileBitmap(Graphics::TCanvas* Canvas, Types::TRect &aRect, Graphics::TGraphic* Graphic, const Smaskdata::TsMaskData &MaskData, Sconst::TacFillMode FillMode = (Sconst::TacFillMode)(0x0))/* overload */;
extern PACKAGE void __fastcall TileMasked(Graphics::TBitmap* Bmp, Types::TRect &aRect, const Sconst::TCacheInfo &CI, const Smaskdata::TsMaskData &MaskData, Sconst::TacFillMode FillMode = (Sconst::TacFillMode)(0xa));
extern PACKAGE void __fastcall TileBitmapFromOther(Graphics::TCanvas* Canvas, const Types::TRect &aRect, const Smaskdata::TsMaskData &MaskData);
extern PACKAGE void __fastcall CalcButtonLayout(const Types::TRect &Client, const Types::TPoint &GlyphSize, const tagSIZE &TextRectSize, Buttons::TButtonLayout Layout, Classes::TAlignment Alignment, int Margin, int Spacing, Types::TPoint &GlyphPos, Types::TRect &TextBounds, int BiDiFlags);
extern PACKAGE int __fastcall GetFontHeight(HWND hFont);
extern PACKAGE tagSIZE __fastcall GetStringSize(HGDIOBJ hFont, const AnsiString Text);
extern PACKAGE bool __fastcall LoadJpegOrBmp(Graphics::TPicture* Image, const AnsiString FileName, bool Gray);
extern PACKAGE void __fastcall FocusRect(Graphics::TCanvas* Canvas, const Types::TRect &R);

}	/* namespace Sgraphutils */
using namespace Sgraphutils;
#pragma option pop	// -w-
#pragma option pop	// -Vx

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// sGraphUtils

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -