Crop Image (1) 썸네일형 리스트형 BitmapSource 이미지 일부 잘라내기 123456789101112131415161718192021public BitmapSource CropImage(BitmapSource aImage, Rect aCropRect){ if (aImage == null) throw new ArgumentNullException("Image"); var rect = new Rect(0, 0, aImage.PixelWidth, aImage.PixelHeight); if (!rect.IntersectsWith(aCropRect)) throw new ArgumentOutOfRangeException("Crop Rect"); rect.Intersect(aCropRect); return new CroppedBitmap( aImage, new Int32Rect( (int.. 이전 1 다음