On Tuesday, 25 Oct 2005 10:58 pm, Rohit Kumar wrote: > 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.
'convert' is part of imagemagick, and imagemagick is available for windows too! > > 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... The problem with gif file is that it is in compressed form, and compressed files are notorious about unpredictability. Any tile constructing method for gifs, would have to read the gif file from beginning everytime you want to find the data of a particular region of the image. i.e. you have to use sequential access, and not random access. This will make it a very painful and slow process. - Sandip P.S. will need more time to think on the next question. > > > 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 -- Sandip Bhattacharya Principal Technology Consultant Puroga Technologies Pvt. Ltd. Website: http://www.puroga.com Phone: +91-11-22237567 GPG/PGP Fingerprint: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3 -- 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
