Converting a Buffered Image to an Image

// This method returns an Image object from a buffered image
public static Image toImage(BufferedImage bufferedImage) {
    return Toolkit.getDefaultToolkit().createImage(bufferedImage.getSource());
}

Comments

14 Feb 2010 - 10:56pm by Anonymous (not verified)

I found what i needed from here..

27 Feb 2010 - 9:14am by Andy (not verified)

Thanks for the great help!

2 Jun 2010 - 3:40am by Jussi (not verified)

Thanks for the examples! This is exactly what I (and other beginning programmers) need: simple, clear and well explained code examples.

20 Oct 2010 - 5:24am by Nils (not verified)

aehm BufferedImage is derived from Image, so just cast..

10 Oct 2011 - 6:36am by Anonymous (not verified)

nice

10 Oct 2011 - 5:53pm by Doll (not verified)

That's raelly thinking out of the box. Thanks!

20 Oct 2011 - 1:03am by christian louboutin uk (not verified)

s, sneakers, heels again enjoy flops. The stock names her christian louboutin footwear has are wonderful Dior, Stuart Weitzman, Tylie Malibu, Louis where can i buy cheap Manolo Blahnik knock offs s, sneakers, heels again enjoy flops. The stock names her high heels footwear has are wonderful Dior, Stuart Weitzman, Tylie Malibu, Louis christian louboutin heels s, sneakers, heels again enjoy flops. The stock names her christian louboutin boots footwear has are wonderful Dior, Stuart Weitzman, Tylie Malibu, Louis Jimmy Choo heels s, sneakers, heels again enjoy flops. The stock names her classic tall ugg boots footwear has are wonderful Dior, Stuart Weitzman, Tylie Malibu, Louis cheap uggs boots

24 Oct 2011 - 9:29am by Anonymous (not verified)

Yes, it is! Oh, people, Thanks a lot!
Just what i needed)
awesome!

Post a comment

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.