private System.Drawing.Image CropImage(System.Drawing.Image img, Rectangle cropRect) { return CropBitmap(new Bitmap(img), cropRect.X,cropRect.Y, cropRect.Width, cropRect.Height); } public Bitmap CropBitmap(Bitmap bitmap, int cropX, int cropY, int cropWidth, int cropHeight) { var rect = new Rectangle(100, 100, cropWidth, cropHeight); var cropped = bitmap.Clone(rect, bitmap.PixelFormat)
Jumat, 20 April 2012
Langganan:
Posting Komentar (Atom)
0 comments:
Posting Komentar