1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| procedure TForm1.Button1Click(Sender: TObject);
var
ImageBMP, GrandBMP : TBitmap;
x,y:integer;
begin
ImageBMP := TBitmap.Create;
GrandBMP := TBitmap.Create;
ImageBMP.PixelFormat := pf24bit;
GrandBMP.PixelFormat := pf24bit;
try
ImageBMP.Assign(Capture.Picture.Graphic);
GrandBMP.Width:=26*256;
GrandBMP.Height:=26*256;
For x:=0 to 25 do
begin
For y:=0 to 25 do
GrandBMP.Canvas.Draw(x*256,y*256,ImageBMP);
end;
GrandBMP.SaveToFile('C:\Original.bmp');
finally
GrandBMP.Free;
ImageBMP.Free
end;
end; |
Partager