Class QImage
- java.lang.Object
-
- net.sourceforge.plantuml.quantization.QImage
-
public final class QImage extends Object
An immutable grid of pixel colors.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QImage
fromBufferedImage(ColorMapper mapper, BufferedImage img)
static QImage
fromColors(QColor[][] colors)
QColor
getColor(int index)
QColor
getColor(int x, int y)
int
getHeight()
int
getNumPixels()
int
getWidth()
BufferedImage
toBufferedImage()
BufferedImage
toBufferedImageKeepTransparency(BufferedImage orig)
-
-
-
Method Detail
-
fromBufferedImage
public static QImage fromBufferedImage(ColorMapper mapper, BufferedImage img)
-
getColor
public QColor getColor(int x, int y)
-
getColor
public QColor getColor(int index)
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
getNumPixels
public int getNumPixels()
-
toBufferedImage
public BufferedImage toBufferedImage()
-
toBufferedImageKeepTransparency
public BufferedImage toBufferedImageKeepTransparency(BufferedImage orig)
-
-