petite/src/wombat/scheme/libraries/ImageAPI.java
public static void displayImage(ImageData img) {
		final RenderedImage ri = new BufferedImage(img.Width, img.Height, BufferedImage.TYPE_INT_RGB);
		((BufferedImage) ri).setRGB(0, 0, img.Width, img.Height, img.Data, 0, img.Width);
		
		// Create the basic frame.
		new ImageFrame((Image) ri).setVisible(true);
	}
/**
	 * Display the given [r,g,b,a] buffer as an image.
	 * @param data The image to write. The first two values are the width and height.
	 * @throws IOException If we cannot write the image.
	 */
Display the given [r,g,b,a] buffer as an image.
@param data The image to write. The first two values are the width and height.
@throws IOException If we cannot write the image.
Display the given [ r g b a ] buffer as an image . @param data The image to write . The first two values are the width and height . @throws IOException If we cannot write the image .
public static void displayImage(ImageData img) {
		final RenderedImage ri = new BufferedImage(img.Width, img.Height, BufferedImage.TYPE_INT_RGB);
		((BufferedImage) ri).setRGB(0, 0, img.Width, img.Height, img.Data, 0, img.Width);
		new ImageFrame((Image) ri).setVisible(true);
	}
public static void displayImage ( ImageData img ) { final RenderedImage ri = new BufferedImage ( img . Width , img . Height , BufferedImage . TYPE_INT_RGB ) ; ( ( BufferedImage ) ri ) . setRGB ( 0 , 0 , img . Width , img . Height , img . Data , 0 , img . Width ) ; new ImageFrame ( ( Image ) ri ) . setVisible ( true ) ; }
Display the given [r,g,b,a] buffer as an image.
Display the given [ r g b a ] buffer as an image .
// Create the basic frame.