0 Replies Latest reply: Mar 23, 2010 11:33 PM by 843802 RSS

    How to save a BufferredImage with RGB color encoded JPEG file.

    843802
      Hi, I am new to Java Imaging API programming.

      When I try to write a BufferredImage using following code -

      BufferedImage output = new BufferedImage (width, height, BufferedImage.TYPE_INT_ARGB);

      // Save
      File outputFile = new File("image.jpeg");
      ImageIO.write(output, "jpeg", outputFile);


      It seems that myfile.jpg have CMYK color encoding, Can someone tell me how can I save the BufferredImage with RGB color encoding.


      Thanks,
      Sanjay Ujjainkar