终于, 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 单元的类图:



©著作权归作者所有:来自51CTO博客作者JLee79的原创作品,如需转载,请注明出处,否则将追究法律责任

更多相关文章

  1. 使用 IntraWeb (27) - 基本控件之 TIWAudio、TIWMPEG、TIWFlash
  2. 使用 IntraWeb (31) - IntraWeb 的 Xml 操作使用的是 NativeXml
  3. springboot研究二:spring-boot单元测试
  4. 告别祈祷式编程|单元测试在项目里的正确落地姿势
  5. 如何让excel单元格内只能输入指定内容?
  6. 第122天:Flask 单元测试
  7. 用 Hypothesis 来自动化单元测试
  8. 圣怀布局,网格(容器,项目,单元,轨道,间距,排列,位置,对齐),隐式
  9. 似懂非懂Google TPU

随机推荐

  1. Android Application - Painting
  2. Android Studio放大缩小字体
  3. some step in studying android
  4. Android(安卓)小应用之一个activity实现
  5. Android(安卓)apk的维护与升级
  6. 在 Android(安卓)上使用 XML 和 JSON,第 2
  7. android解析json数组
  8. android 开发中遇到错误及解决办法总结(
  9. Android使用WCF的服务程序之入门
  10. Android Studio插件