how to generate large image in compact framework

Posted by Buthrakaur on Stack Overflow See other posts from Stack Overflow or by Buthrakaur
Published on 2010-05-04T08:39:49Z Indexed on 2010/05/04 12:38 UTC
Read the original article Hit count: 216

I need to generate large images (A4 image at 200 DPI, PNG format would be fine) in my compact framework application. This is impossible to do in standard way due to memory limitations (such big image will throw OOMException).

Is there any library which offers file-backed stream image generation?

Or I could generate many smaller stripes of images (each stripe representing a row of the large image) using standard Bitmap approach, but I need to merge them together afterwards - is there any method how to merge many smaller images into one large without having to instantiate large Bitmap instance (which would again cause OOM)?

© Stack Overflow or respective owner

Related posts about c#

Related posts about compact-framework