圆形区域的裁减!tyn的代码!
procedure TForm1.BitBtn1Click(Sender: TObject);
var
Bmp :TBitmap;
FRgn :HRGN;
begin
Bmp :=TBitmap.Create;
Bmp.PixelFormat :=Image1.Picture.Bitmap.PixelFormat;
Bmp.Width :=200;
Bmp.Height :=200;
BitBlt(Bmp.Canvas.Handle,0,0,Bmp.Width,Bmp.Height,Image1.Canvas.Handle,80,
80,SRCCOPY); FRgn :=CreateEllipticRgn(0,0,200,200); SelectClipRgn(Image1.Canvas.Handle,FRgn); //Ñ¡Ôñ¼ôÇÐÇøÓò
Image1.Canvas.Draw(0,0,Bmp);
Bmp.Free;
DeleteObject(FRgn);
end;
end.