Class ImgRaw

All Implemented Interfaces:
Element

public class ImgRaw extends Image
Raw Image data that has to be inserted into the document
Author:
Paulo Soares
See Also:
  • Constructor Details

    • 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