var
Bmp1, bmp2: tBitmap
From the replication (intercept) areas to bmp1 bmp2,
Excuse me, how should do
CodePudding user response:
Bmp2. Canvas. CopyRect (the Rect (100100200200), bmp1. The Canvas, the Rect (0,0,100,100));
Copy from bmp1 0,0,100,100 region to bmp2 100100200200 area
CodePudding user response:
Procedure CropBitmap (InBitmap, OutBitMap: TBitmap; X, Y, W, H: Integer);
The begin
OutBitMap. PixelFormat:=InBitmap. PixelFormat;
OutBitMap. Width:=W;
OutBitMap. Height:=H;
BitBlt (OutBitMap. Canvas. Handle, 0, 0, W, H, InBitmap. Canvas. Handle, X, Y, SRCCOPY);
The end;
//use
Var
Bmp: TBitmap;
The begin
Bmp:=TBitmap. Create;
Try
CropBitmap (Image1. Picture. Bitmap Bmp, 10, 0, 150, 150);
.
The finally
Bmp. Free;
The end;
The end;
CodePudding user response:
StretchBlt can also zoom
Upstairs with JavaScript code can also for the code so neatly
CodePudding user response:
Can use the BitBlt function provided by the Windows
CodePudding user response:
Very busy
CodePudding user response:
Bmp2. Assign (bmp1);
Give bmp2 bmp1 values
CodePudding user response: