Greetings there, [sorry for the late-late response...] --- Sandip Bhattacharya <[EMAIL PROTECTED]> wrote: > 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.
[ thanks embedded.. :-) ] well i did found a very good page explaining the BMP file format... http://astronomy.swin.edu.au/~pbourke/dataformats/bmp/ also there were a couple of JavaWorld links that did provide ready-to-use code... i have got the converter tool by default installed on linux, it goes by the name 'convert' and supports lots of file formats for conversion. i have used it to convert the scanned image from Tiff to GIF(as java supports GIF/JPEG/XBM) and now have converted them to BMP. i am still working on it.. on a time-shared :-), so talking longer time to implement. also while looking for some other(easy..) solution to the same problem.. the BufferedImage class have a few methods that support tiling of imgaes, but that is i guess from an already loaded image... but if the image is a bit large, what use are these tiling methods?? or is there a way to load gif files 'tiled' without going into the details of construction of the image file... one more design question... i have a 1000+ generic paths(line segments) displayed... which of the following is better way to capture the mouse event..? 1. Add listener to each of the component 2. get x,y of the mouse click and compare it with all 1000+ objects .contains() or .intersects() method. on every click. these segments are subject to editing like extending them,shortening them moving them. these segments are stored in a fixed manner but arbitarily drawn. the order of the paths is picked up from Database, is arbiatry ie they do not follow the left-right-top-bottom order when being drawn. ie: if there are 3 segment, first draws to south, the second to east and third to west side of a panel then this remains fixed 1:south,2:east,3:west every time the component is repainted. according to me first option is better but i got a solution with the second approach which i think is time consuming... thanks again for the reply... regards, rohit. NAMASTE, i honour the spirit in you which is also in me. ``````````````````````````````````````````````````````` http://www.geocities.com/rohitsz2 __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com _______________________________________________ Java mailing list [email protected] http://mail.jug-delhi.org/mailman/listinfo/java_jug-delhi.org
