Re: Saving a large TJpeg - Insufficient Resources?
- From: Nicholas Sherlock <N.sherlock@xxxxxxxxx>
- Date: Thu, 25 Oct 2007 13:18:43 +1300
Roy wrote:
I'm loading the file into a TJpegImage, creating a Tbitmap and using stretchdraw to copy the data to the bitmap - then using the bitmap.canvas to write my text, then finally using jpeg.assign to get back into jpeg format before using jpg.savetofile
but... with the larger images (3000x2000 pixels) I'm getting an exception telling me there are insufficient resources. If it can load the jpeg to start with, how can this be??
IIRC, on Windows you're only guaranteed to be able to create a Windows bitmap that's the same size as the screen, no larger. The bitmap you have there is very large! I'd investigate TBitmap32, from Graphics32, which either doesn't use Windows to create the bitmap, or can be patched so that it doesn't (I can't remember which).
Cheers,
Nicholas Sherlock
.
- Follow-Ups:
- References:
- Prev by Date: Saving a large TJpeg - Insufficient Resources?
- Next by Date: Re: Saving a large TJpeg - Insufficient Resources?
- Previous by thread: Saving a large TJpeg - Insufficient Resources?
- Next by thread: Re: Saving a large TJpeg - Insufficient Resources?
- Index(es):
Relevant Pages
|