Re: [JAVA2D] Join images (tiles) with low memory footprint

2008-07-11 Thread Ken Warner

Yeah, I'd like to know that one too...

[EMAIL PROTECTED] wrote:

I have the following problem: I try to join many tile images into a big image 
using BufferedImage and then storing it as PNG or JPG. Memory usage is linear - 
for 4000x4000 pixel result image (16,000,000 pixel) I need 16 times more memory 
than for a 1,000,000 pixel image.

Do you know a method of joining small images into a large image using a 
constant memory footprint? Any hints will be appreciated.

Best,

Marcin
[Message sent by forum member 'mgryszko' (mgryszko)]

http://forums.java.net/jive/thread.jspa?messageID=285971

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message signoff JAVA2D-INTEREST.  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message help.



===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message signoff JAVA2D-INTEREST.  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message help.


Re: [JAVA2D] Join images (tiles) with low memory footprint

2008-07-11 Thread Harald Kuhr

Hi,

The quick answer is you can't do that with one large BufferedImage  
because, as it name suggests, it's buffered (in memory). It might be  
that you could use some kind of RenderedImage though.


I suggest you search the JAI/ImageIO mailing list archives, or ask the  
list. They probably have some ideas how you can do just that.



Best regards,

.k

On 11. juli. 2008, at 15.24, [EMAIL PROTECTED] wrote:

I have the following problem: I try to join many tile images into a  
big image using BufferedImage and then storing it as PNG or JPG.  
Memory usage is linear - for 4000x4000 pixel result image  
(16,000,000 pixel) I need 16 times more memory than for a 1,000,000  
pixel image.


Do you know a method of joining small images into a large image  
using a constant memory footprint? Any hints will be appreciated.


Best,

Marcin
[Message sent by forum member 'mgryszko' (mgryszko)]

http://forums.java.net/jive/thread.jspa?messageID=285971

= 
= 
= 
= 
= 
==
To unsubscribe, send email to [EMAIL PROTECTED] and include in  
the body
of the message signoff JAVA2D-INTEREST.  For general help, send  
email to

[EMAIL PROTECTED] and include in the body of the message help.


===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message signoff JAVA2D-INTEREST.  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message help.