public final class CsConverterUtil extends Object
Modifier and Type | Method and Description |
---|---|
static BitmapImagePixels |
convertBitmapImage(BitmapImagePixels imagePixels, ColorConverter converter)
Converts passed bitmap image bytes from one color space to another according with provided ColorConverter .
|
static BitmapImagePixels |
extractColorTableOfIndexedImage(com.itextpdf.kernel.pdf.colorspace.PdfSpecialCs.Indexed indexedCs)
Extracts color table from indexed color space instance.
|
public static BitmapImagePixels convertBitmapImage(BitmapImagePixels imagePixels, ColorConverter converter)
ColorConverter
. It is expected that source color space of the converter matches the color space of the image. Otherwise result of the method invocation may be unpredictable.
imagePixels
- the bitmap image pixels to be converted
converter
- is the converter for the image. It is expected that its source color space which can be identified via ColorConverter.getSourceColorspace()
matches the color space of the image (at least it has the same number of components as image does according to BitmapImagePixels.getNumberOfComponents()
method.
public static BitmapImagePixels extractColorTableOfIndexedImage(com.itextpdf.kernel.pdf.colorspace.PdfSpecialCs.Indexed indexedCs)
indexedCs
- is an indexed color space instance
BitmapImagePixels
or null if indexedCs is not valid indexed color space instance
Copyright © 1998–2020 iText Group NV. All rights reserved.