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 QImagefromBufferedImage(ColorMapper mapper, BufferedImage img)static QImagefromColors(QColor[][] colors)QColorgetColor(int index)QColorgetColor(int x, int y)intgetHeight()intgetNumPixels()intgetWidth()BufferedImagetoBufferedImage()BufferedImagetoBufferedImageKeepTransparency(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)
-
-