type TGBrush = class private const MaxBrushes = 1000; var imginf :imageInfo; brushList :tstringlist; setedBrush :TImage; BeginCoords :Tpoint; NowPainting :boolean; public procedure setBrush(BNumber:integer;color:tbgra); procedure paintBrush(x, y:integer); procedure BrushTo(x,y:integer); procedure EndPaint; constructor Create(Image: ImageInfo); end; //////////////////////////////////////////////////////////// var b:tgbrush; begin b:=tgbrush.Create(can.imgInf); //Stack overflow end;
What am I doing wrong??
constructor TGBrush.create(Image: ImageInfo); var sl:TSearchRec; i:integer; begin // здесь всё закоментированно end; //////////////////////////////////////////////////////////// type Tbgra = record b,g,r,a:byte; end; type bgraArray = array [1..imgmaxwh] of Tbgra; Pbgra1dArray=^bgraArray; type Bgra2dArray = array [1..imgmaxworh] of array [1..imgmaxworh] of ^tbgra; type ImageInfo = record width, height :integer; bufDC :hdc; srcHDC :hwnd; pixels1d :Pbgra1darray; pixels2d :Bgra2darray; end;