hi i am saving a component to a jpeg image(converting component to buffered image) with the code line ImageIO.write( image, "jpg", file ); this code works fine when component is saved in windows but in case of Mac OS X the image created gets a reddish tint . Can anyone tell me where the problem is or is there something else i should do while saving to jpeg images in mac
ps: i tried with following code too but same result JPEGImageEncoder jpgencoder = JPEGCodec.createJPEGEncoder(out); jpgencoder.encode(image);
Joined: Apr 13, 2006
Hi I got the soultion. Instead of converting component to buffered image directly ... convert the component to image and then the image to buffered image. THis way the image get created correctly.