public final class BufferedImageUtil
extends java.lang.Object
BufferedImage.| Modifier and Type | Method and Description |
|---|---|
static java.awt.image.BufferedImage |
toBufferedImage(com.badlogic.gdx.graphics.Pixmap pixmap)
Converts a
Pixmap to an equivalent BufferedImage. |
static java.awt.image.BufferedImage |
toBufferedImage(com.badlogic.gdx.graphics.Pixmap pixmap,
int bufferedImageType)
Converts a
Pixmap to an equivalent BufferedImage, using an explicit buffered image
type (BufferedImage.getType()) for the resulting image. |
static int |
toBufferedImageType(com.badlogic.gdx.graphics.Pixmap.Format format)
Returns the equivalent buffered image type (
BufferedImage.getType()) for the given pixmap
format. |
public static java.awt.image.BufferedImage toBufferedImage(com.badlogic.gdx.graphics.Pixmap pixmap)
Pixmap to an equivalent BufferedImage. The buffered image type is
automatically determined from the pixmap's format.toBufferedImage(Pixmap, int),
#toBufferedImageType(Format)public static java.awt.image.BufferedImage toBufferedImage(com.badlogic.gdx.graphics.Pixmap pixmap,
int bufferedImageType)
Pixmap to an equivalent BufferedImage, using an explicit buffered image
type (BufferedImage.getType()) for the resulting image.BufferedImage.getType()public static int toBufferedImageType(com.badlogic.gdx.graphics.Pixmap.Format format)
BufferedImage.getType()) for the given pixmap
format.