I have a Bitmap object from this I need to extract a sub image and keep it as a Bitmap object by passing Rectangle object which contains sub image co-ordinates?
Is there a c# library which is able to do this or is Aforge able to extract sub image.
Thanks
The Bitmap class has a Clone method which accepts a target rectangle directly.
Since you’re already working with a
Bitmap, callingClonewith your rectangle and desiredPixelFormat(which could beoriginalBitmap.PixelFormat) should give you what you need, with no additional dependencies.