Package com.itextpdf.io.image
Class RawImageHelper
java.lang.Object
com.itextpdf.io.image.RawImageHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
updateCcittImageParameters
(RawImageData image, int width, int height, boolean reverseBits, int typeCcitt, int parameters, byte[] data) static void
updateImageAttributes
(RawImageData image, Map<String, 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)
-
Constructor Details
-
RawImageHelper
public RawImageHelper()
-
-
Method Details
-
updateImageAttributes
-
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)
-