CopyRect剪裁图片后为什么会失真

醉~清风 8天前 58


      sBmp := TBitmap.Create;

      dBmp := TBitmap.Create;

      sBmp.Assign(img_sp.Picture.Bitmap);

      dBmp.Width := 180;

      dBmp.Height := 210;

      DestRect.Top := 0;

      DestRect.Left := 0;

      DestRect.Right := dBmp.Width;

      DestRect.Bottom := dBmp.Height;

      dBmp.Canvas.CopyRect(DestRect, img_sp.Canvas, rect(201, 31, 410, 420));

      imglocalphoto.Picture.Graphic := dBmp;


最新回复 (0)
返回
发新帖