Hi Petio,

  you can create a BufferedImage of type TYPE_BYTE_INDEXED and render
  your image into it. Something like this:

  BufferedImage biImage =
      new BufferedImage(width, height, BufferedImage.TYPE_BYTE_INDEXED);
  Graphics g = biImage.getGraphics();
  g.drawImage(origImage, 0, 0, null);

  Thank you,
    Dmitri


On Wed, Aug 22, 2001 at 10:06:0p +0300, Petio Zaffirov wrote:
 > Hi, all,
 > I'm trying to encode BufferedImage to gif file (with using of several free encoder 
 >classes),
 > but there are the following problem:
 > I must to convert buffered image to 256 color image but I don't know how.
 >
 > Help please and thanks, Petio

===========================================================================
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".

Reply via email to