Re: [JAVA2D] IndexColorModel

2002-03-05 Thread Karen Johnson
phics context to your color, eg. g2.setColor(Color.red) 5. draw onto offscreen buffered image, eg. g2.draw( Regards, Karen -Original Message- From: Paul Szawlowski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:41 AM To: [EMAIL PROTECTED] Subject: [JAVA2D] IndexColorModel H

[JAVA2D] IndexColorModel and Graphics2D

2002-03-05 Thread Dipl. Ing. Paul Szawlowski
Hi all, I have an BufferedImage with an IndexColorModel and a MultiPixelPackedSampleModel using 4 bits per pixel as index info. Now I want to draw on this image using its Graphics2D methods and draw the image on a JPanel after each drawing operation( e.g. a line). How do I set a specific color de

[JAVA2D] IndexColorModel

2002-03-05 Thread Paul Szawlowski
Hi all, I have an BufferedImage with an IndexColorModel and a MultiPixelPackedSampleModel using 4 bits per pixel as index info. Now I want to draw on this image using its Graphics2D methods and draw the image on a JPanel after each drawing operation( e.g. a line). How do I set a specific color

[JAVA2D] IndexColorModel

2001-03-07 Thread Stephan Heinemann
Hi, I need to construct an appropriate ColorModel for a palette-color image. Each value in the table is a 16bit unsigned. The IndexColorModel only provides 8bit bands for the index values. How do I construct a working ColorModel? Thank you, Stephan =

[JAVA2D] IndexColormodel, alpha, interpolation

1999-08-18 Thread Brad Buchsbaum
Hi, I'm having a bit of trouble using Bilinear interpolation on images using an IndexColorModel with alpha values that change according to a threshold set by the user. It works fine with Nearest-Neighbor interpolation, but with the Bilinear hint, I'm getting completely transparent images. Any ide