Class RgbPixmapImpl

    • Field Detail

      • _pixels

        protected RgbPixel[][] _pixels
    • Constructor Detail

      • RgbPixmapImpl

        public RgbPixmapImpl()
        Instantiates a new rgb pixmap impl.
      • RgbPixmapImpl

        public RgbPixmapImpl​(RgbPixel[][] aPixels)
        Instantiates a new rgb pixmap impl.
        Parameters:
        aPixels - the pixels
      • RgbPixmapImpl

        public RgbPixmapImpl​(int aWidth,
                             int aHeight)
        Instantiates a new rgb pixmap impl.
        Parameters:
        aWidth - the width
        aHeight - the height
      • RgbPixmapImpl

        public RgbPixmapImpl​(BufferedImage aImage)
        Constructs a RgbPixmap from the given BufferedImage.
        Parameters:
        aImage - the image from which to get the pixmap.
      • RgbPixmapImpl

        public RgbPixmapImpl​(URL aImageUrl)
                      throws IOException
        Constructs a RgbPixmap from the given image's URL.
        Parameters:
        aImageUrl - the image URL from which to get the pixmap.
        Throws:
        IOException - thrown in case reading the image encountered problems.
      • RgbPixmapImpl

        public RgbPixmapImpl​(File aImageFile)
                      throws IOException
        Constructs a RgbPixmap from the given File.
        Parameters:
        aImageFile - the image File from which to get the pixmap.
        Throws:
        IOException - thrown in case reading the image encountered problems.
      • RgbPixmapImpl

        public RgbPixmapImpl​(URL aImageUrl,
                             int aWidth,
                             int aHeight)
                      throws IOException
        Constructs a RgbPixmap from the given image's URL and the given dimension for the resulting pixmap.
        Parameters:
        aImageUrl - the image URL from which to get the pixmap.
        aWidth - The width to for the resulting pixmap, -1 if the image's width is to be used.
        aHeight - the height for the resulting pixmap, -1 if the image's height is to be used.
        Throws:
        IOException - thrown in case reading the image encountered problems.
      • RgbPixmapImpl

        public RgbPixmapImpl​(File aImageFile,
                             int aWidth,
                             int aHeight)
                      throws IOException
        Constructs a RgbPixmap from the given File and the given dimension for the resulting pixmap.
        Parameters:
        aImageFile - the image File from which to get the pixmap.
        aWidth - The width to for the resulting pixmap, -1 if the image's width is to be used.
        aHeight - the height for the resulting pixmap, -1 if the image's height is to be used.
        Throws:
        IOException - thrown in case reading the image encountered problems.
      • RgbPixmapImpl

        public RgbPixmapImpl​(InputStream aImageInputStream,
                             int aWidth,
                             int aHeight)
                      throws IOException
        Constructs a RgbPixmap from the given image InputStream and the given dimension for the resulting pixmap.
        Parameters:
        aImageInputStream - the image InputStream from which to get the pixmap.
        aWidth - The width to for the resulting pixmap, -1 if the image's width is to be used.
        aHeight - the height for the resulting pixmap, -1 if the image's height is to be used.
        Throws:
        IOException - thrown in case reading the image encountered problems.
      • RgbPixmapImpl

        public RgbPixmapImpl​(BufferedImage aImage,
                             int aWidth,
                             int aHeight)
        Constructs a RgbPixmap from the given BufferedImage and the given dimension for the resulting pixmap.
        Parameters:
        aImage - the image from which to get the pixmap.
        aWidth - The width to for the resulting pixmap, -1 if the image's width is to be used.
        aHeight - the height for the resulting pixmap, -1 if the image's height is to be used.