как сделат Destroy Bitmap ?
| Код | procedure load_image(fname:string); var i,j,y:integer; Bitmap1: TBitmap; begin Bitmap1:= TBitmap.Create; Bitmap1.PixelFormat:=pf24bit; Bitmap1.LoadFromFile(Fname); // Form1.Image1.Picture.Graphic:= Bitmap1; Form1.image1.width:=bitmap1.width; Form1.image1.height:=bitmap1.height; y:= 0; for i := 0 to 15 do for j:= 0 to 15 do begin inc(y); Input_neiro_value[y]:=getRvalue(Form1.image1.canvas.pixels[i,j]); if Input_neiro_value[y]=255 then Input_neiro_value[y]:=0 else Input_neiro_value[y]:=1; end;
Tbitmap.Destroy; ????????????????????????????????????????? end;
|
|