Class RawImageHelper

java.lang.Object
com.itextpdf.io.image.RawImageHelper

public final class RawImageHelper extends Object
  • Constructor Details

    • RawImageHelper

      public RawImageHelper()
  • Method Details

    • updateImageAttributes

      public static void updateImageAttributes (RawImageData image, Map<String,Object> additional)
    • updateRawImageParameters

      protected static void updateRawImageParameters (RawImageData image, int width, int height, int components, int bpc, byte[] data)
      Update original image with Raw Image parameters.
      Parameters:
      image - to update its parameters with Raw Image 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:
      IOException - on error
    • updateRawImageParameters

      protected static void updateRawImageParameters (RawImageData image, int width, int height, int components, int bpc, byte[] data, int[] transparency)
    • updateRawImageParameters

      protected static void updateRawImageParameters (RawImageData image, int width, int height, boolean reverseBits, int typeCCITT, int parameters, byte[] data, int[] transparency)
    • updateCcittImageParameters

      protected static void updateCcittImageParameters (RawImageData image, int width, int height, boolean reverseBits, int typeCcitt, int parameters, byte[] data)