Class ImgRaw

    • Constructor Detail

      • ImgRaw

        ImgRaw​(Image image)
      • ImgRaw

        public ImgRaw​(int width,
                      int height,
                      int components,
                      int bpc,
                      byte[] data)
               throws BadElementException
        Creates an Image in raw mode.
        Parameters:
        width - the exact width of the image
        height - the exact height of the image
        components - 1,3 or 4 for GrayScale, RGB and CMYK
        bpc - bits per component. Must be 1,2,4 or 8
        data - the image data
        Throws:
        BadElementException - on error