Anyone know of a fast way to take a smaller bitmap from a larger bitmap?
Bitmap.Clone() runs out of memory after 30 images. I need to create hundreds of tiles from a larger image.
All the examples I've found use LockBits which requires some unmanaged pointers. Not that I don't like pointers but dealing with them in C# does not look fun and the Marshal class appears to only copy much like memcpy does. So it's not possible to specify a rectangle nor control the areas it copies unless I copy one scan line at a time.



LinkBack URL
About LinkBacks



CornedBee