I'm curious what format the grayscale image is in. -Mike Robinson
Terry Wu wrote: > The following code works find for 24 bit color images, but it > hangs whenever the BufferedImage is a 8 bit grayscale image. > Can someonecomment on what is wrong with the code or whether > there is a bug in ImageIcon? > > Thanks in advance, > > Terry > > ************************************************************** > BufferedImage bImage = .... //bImage is assigned here > > Image im = bImage.getScaledInstance(w, h, Image.SCALE_FAST); > > // !!!! HANGS HERE !!!! > ImageIcon icon=new ImageIcon(im); > ************************************************************* > > __________________________________________________ > Do You Yahoo!? > Listen to your Yahoo! Mail messages from any phone. > http://phone.yahoo.com > > =========================================================================== > 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". -- ****************************************** Mike Robinson, Computer Science Department Maharishi University of Management Fairfield, IA 52557 USA Voice: 1-641-472-7000 ext. 4300 Email: [EMAIL PROTECTED] =========================================================================== 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".
