I want a simple app to crop a bit of some images. The fact is that all the codes I've found were too complicated, and I didn't understood a single letter of it.
Can somebody help me with it? The codes I saw where using and start point and a end point, but I don't need it, since what I want to do will always start from the sides (crop from left to center, from right to center, from bottom to center, from top to center). Can somebody help me?
Edit: here is the code I was talking about:
Private Function CropBitmap(ByRef bmp As Bitmap, ByVal cropX As Integer, ByVal cropY As Integer, ByVal cropWidth As Integer, ByVal cropHeight As Integer) As Bitmap Dim rect As New Rectangle(cropX, cropY, cropWidth, cropHeight) Dim cropped As Bitmap = bmp.Clone(rect, bmp.PixelFormat) Return cropped End Function
Edited 5 Years Ago by RenanLazarotto: n/a