Just to add to Chris' comments: converting to a BufferedImage is as simple as creating a new BufferedImage, getting the Graphics object from it, and doing a drawImage from the old image to the BufferedImage.
Or, depending on your situation, you could work with a BufferedImage to begin with and just skip that whole ImageProducer thing.
Chet.
Chris Campbell wrote:
Hi Praveen,
I'm not exactly sure what you're trying to do, and I assume you mean writing a PNG image using Image I/O. But the short answer is no, you need a RenderedImage or BufferedImage in order to use the ImageIO.write() methods.
Chris
On Thursday, August 7, 2003, at 09:51 AM, Praveen Kysetti wrote:
Hi all,<image.tiff>
I have a question regarding image write. Is it possible to directly write an ImageProducer to PNG without having to convert it to image or bufferedimage or renderedimage.
Hope to get a positive answer.
Thanks, Regards, Praveen
Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software ======================================================================= ==== 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".
=========================================================================== 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".
=========================================================================== 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".
