Hi,
Load it as a Toolkit image (ie using getImage()) and draw this
into a new BufferedImage you create with the same size.
That has the advantage of working for JPEG too and doesn't rely
on classes which aren't a standard part of the JDK.
-phil.
> Date: Wed, 8 Mar 2000 10:13:09 -0800
> From: "Todd C. Klaus" <[EMAIL PROTECTED]>
> Subject: [JAVA2D] Creating BufferedImage from GIF?
> To: [EMAIL PROTECTED]
>
> Hi,
>
> Creating a BufferedImage from a JPG seems pretty straightforward:
>
> BufferedImage img =
> JPEGCodec.createJPEGDecoder(inputStream).decodeAsBufferedImage();
>
> but I don't see a way to do the same thing for a GIF. What am I missing here?
>
> Thanks,
> Todd Klaus
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
> ===========================================================================
> 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".