Give the Image and location x,y with width and height....
Rectangle srcRect = new Rectangle(LocX, Locy, width, heigth); private static Image cropImage(Image img, Rectangle cropArea) { Bitmap bmpImage = new Bitmap(img); Bitmap bmpCrop = bmpImage.Clone(cropArea, bmpImage.PixelFormat); return (Image)(bmpCrop); }
No comments:
Post a Comment