Class QImage


  • public final class QImage
    extends java.lang.Object
    An immutable grid of pixel colors.
    • Method Detail

      • fromBufferedImage

        public static QImage fromBufferedImage​(ColorMapper mapper,
                                               java.awt.image.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 java.awt.image.BufferedImage toBufferedImage()
      • toBufferedImageKeepTransparency

        public java.awt.image.BufferedImage toBufferedImageKeepTransparency​(java.awt.image.BufferedImage orig)