On Friday, 30 Sep 2005 21:51, Rohit Kumar wrote:

> is there a way to break the big files into tiles and
> escape the OutOfMemory Exception?? and not give the -X
> option, as that being non-portable!

Gif is a lossless format. So it should be possible to convert it to a raw 
uncompressed BMP or similar format, and back without any loss.

So why dont you have an utility to convert gifs to bmp on disk. Then write 
your program to work with this raw format. Being raw uncompressed, the 
location of data needed for a particular tile can be easily calculated in 
terms of offset range of the file. Then you can just open it as a binary file 
and read that much part into memory, and work on it.

later you can covert the bmp back to gif. This hould also happen without any 
loss.

- Sandip

-- 
Sandip Bhattacharya  *    Puroga Technologies   *     [EMAIL PROTECTED]
Work: http://www.puroga.com  *   Home/Blog: http://www.sandipb.net/blog

PGP/GPG Signature: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3

_______________________________________________
Java mailing list
[email protected]
http://mail.jug-delhi.org/mailman/listinfo/java_jug-delhi.org

Reply via email to