Jumat, 20 April 2012

Image Crop X,Y Dosn't work why?

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)

0 comments:

Posting Komentar