这是以前的内容, 应该从 http://www.cnblogs.com/del/archive/2008/06/06/1215319.html 开始!
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs; type TForm1 = class(TForm) procedure FormPaint(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} uses GDIPAPI,GDIPOBJ; {在 Library path 中引入相关路径后, uses 这两个单元} procedure TForm1.FormPaint(Sender: TObject); begin //开始工作 end; end.