handling the image

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saharit
    New Member
    • Mar 2011
    • 16

    handling the image

    Hi everybody,

    Does anyone know how to crop bmp file?
    Last edited by Frinavale; Jul 4 '13, 01:29 PM.
  • adriancs
    New Member
    • Apr 2011
    • 122

    #2
    Code:
    public Bitmap CropBitmap(Bitmap bitmap, int cropX, int cropY, int cropWidth, int cropHeight)
    {
    Rectangle rect = new Rectangle(cropX, cropY, cropWidth, cropHeight);
    Bitmap cropped = bitmap.Clone(rect, bitmap.PixelFormat);
    return cropped;
    }
    You may refer here too:

    Comment

    Working...