AggPasを使用しようとして いますが、ビットマップにアタッチするコード例が不足しているドキュメントを見つけました。
私はこのコードを持っています:
procedure DrawScene();
var
ObjLength,LineLength,Filllength,Obj,lin,angle,i:integer;
Npoints : array[0..1] of Tpoint;
VG: Tagg2d;
DOB:Tobject;
Objmap,wholemap:TBitmap;
begin
wholemap := TBitmap.Create;
wholemap.PixelFormat:=pf32bit;
VG := Tagg2d.create;
if VG.attach(wholemap,False) then
showmessage('true')
else
showmessage('false');
wholemap.Width:=area;
wholemap.height:=area;
しかし、それはfalseを返しています。私が見る限り、私は正しいことをしています。私は何かが欠けているに違いない。