终于, Delphi XE2 携带 GDI+ 库了
16lz
2021-04-30
终于, Delphi XE2 携带 GDI+ 库了
使用了较早的 http://www.progdigy.com
uses Winapi.GDIPAPI, Winapi.GDIPOBJ{, Winapi.GDIPUTIL};procedure TForm1.FormPaint(Sender: TObject);var graphics: TGPGraphics; pen: TGPPen;begin graphics := TGPGraphics.Create(Canvas.Handle); pen := TGPPen.Create(MakeColor(255,0,0)); graphics.DrawRectangle(pen, MakeRect(11, 22, 33, 44)); pen.Free; graphics.Free;end;
GdipObj 单元的类图:
更多相关文章
- 使用 IntraWeb (27) - 基本控件之 TIWAudio、TIWMPEG、TIWFlash
- 使用 IntraWeb (31) - IntraWeb 的 Xml 操作使用的是 NativeXml
- springboot研究二:spring-boot单元测试
- 告别祈祷式编程|单元测试在项目里的正确落地姿势
- 如何让excel单元格内只能输入指定内容?
- 第122天:Flask 单元测试
- 用 Hypothesis 来自动化单元测试
- 圣怀布局,网格(容器,项目,单元,轨道,间距,排列,位置,对齐),隐式
- 似懂非懂Google TPU