Posted by: JeffS
Creating a huge jpeg in code - 08/09/2003 08:17
I’m working in Delphi (of course), but all I need to know is if this can be done at all in any language. I don’t necessarily need help with a solution, just knowing that it’s possible would be enough.
My problem:
In code, I have to create a jpeg image that can potentially be absolutely huge. The problem is that the only way I know of to draw to a jpeg is to first write to a bitmap in memory and convert it to jpeg before saving. The problem here is that I cannot create a bitmap large enough in windows without getting an “out of memory” error. I CAN break the image up into several smaller bitmaps, but I don’t know how to put these together in order to save as a single jpeg. Basically my problem is how to write a huge jpeg without creating a large bitmap in memory to do it.
Any thoughts?
My problem:
In code, I have to create a jpeg image that can potentially be absolutely huge. The problem is that the only way I know of to draw to a jpeg is to first write to a bitmap in memory and convert it to jpeg before saving. The problem here is that I cannot create a bitmap large enough in windows without getting an “out of memory” error. I CAN break the image up into several smaller bitmaps, but I don’t know how to put these together in order to save as a single jpeg. Basically my problem is how to write a huge jpeg without creating a large bitmap in memory to do it.
Any thoughts?