0 Replies Latest reply on Mar 24, 2010 4:33 AM by 843802

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

      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.

      Sanjay Ujjainkar