Class RawImageHelper


  • public final class RawImageHelper
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      RawImageHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static void updateCcittImageParameters​(RawImageData image, int width, int height, boolean reverseBits, int typeCcitt, int parameters, byte[] data)  
      static void updateImageAttributes​(RawImageData image, java.util.Map<java.lang.String,​java.lang.Object> additional)  
      protected static void updateRawImageParameters​(RawImageData image, int width, int height, boolean reverseBits, int typeCCITT, int parameters, byte[] data, int[] transparency)  
      protected static void updateRawImageParameters​(RawImageData image, int width, int height, int components, int bpc, byte[] data)
      Update original image with Raw Image parameters.
      protected static void updateRawImageParameters​(RawImageData image, int width, int height, int components, int bpc, byte[] data, int[] transparency)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RawImageHelper

        public RawImageHelper()
    • Method Detail

      • updateImageAttributes

        public static void updateImageAttributes​(RawImageData image,
                                                 java.util.Map<java.lang.String,​java.lang.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)