반응형 c# graphics.DrawImage1 c# image crop 방법 1. image crop 을 위한 소스코드 Bitmap bitmap = new Bitmap("원본 이미지 path"); Rectangle rect = new Rectangle(30, 30, 100, 200); Bitmap cropBitmap = cropAtRect(bitmap, rect); cropBitmap.Save("새로운 위치.jpg", ImageFormat.Jpeg); public Bitmap cropAtRect(Bitmap orgImg, Rectangle sRect) { Rectangle destRect = new Rectangle(Point.Empty, sRect.Size); var cropImage = new Bitmap(destRect.Width, destRect.Height); using.. 2022. 2. 16. 이전 1 다음 반응형