java.lang.Object
net.sourceforge.plantuml.quantization.QImage

public final class QImage extends Object
An immutable grid of pixel colors.
  • Method Details

    • fromBufferedImage

      public static QImage fromBufferedImage(ColorMapper mapper, BufferedImage img)
    • fromColors

      public static QImage fromColors(QColor[][] colors)
    • 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)