Class PngImageData
java.lang.Object
com.itextpdf.io.image.ImageData
com.itextpdf.io.image.RawImageData
com.itextpdf.io.image.PngImageData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]private intprivate floatprivate PngChromaticitiesFields inherited from class RawImageData
CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, typeCcittFields inherited from class ImageData
bpc, colorEncodingComponentsNumber, colorTransform, data, decode, decodeParms, deflated, dpiX, dpiY, filter, height, imageAttributes, imageMask, imageSize, interpolation, inverted, mask, mySerialId, originalType, profile, rotation, transparency, url, width, XYRatio -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPngImageData(byte[] bytes) protectedPngImageData(URL url) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]intfloatgetGamma()booleanbooleanbooleanvoidsetColorPalette(byte[] colorPalette) voidsetColorType(int colorType) voidsetGamma(float gamma) voidsetPngChromaticities(PngChromaticities pngChromaticities) Methods inherited from class RawImageData
getTypeCcitt, isRawImage, setTypeCcittMethods inherited from class ImageData
canBeMask, canImageBeInline, getBpc, getColorEncodingComponentsNumber, getColorTransform, getData, getDecode, getDecodeParms, getDpiX, getDpiY, getFilter, getHeight, getImageAttributes, getImageMask, getOriginalType, getProfile, getRotation, getTransparency, getUrl, getWidth, getXYRatio, isDeflated, isInterpolation, isInverted, isMask, isSoftMask, loadData, makeMask, setBpc, setColorEncodingComponentsNumber, setColorTransform, setDecode, setDeflated, setDpi, setFilter, setHeight, setImageAttributes, setImageMask, setInterpolation, setInverted, setProfile, setRotation, setTransparency, setUrl, setWidth, setXYRatio
-
Field Details
-
colorPalette
private byte[] colorPalette -
colorType
private int colorType -
gamma
private float gamma -
pngChromaticities
-
-
Constructor Details
-
PngImageData
protected PngImageData(byte[] bytes) -
PngImageData
-
-
Method Details
-
getColorPalette
public byte[] getColorPalette() -
setColorPalette
public void setColorPalette(byte[] colorPalette) -
getGamma
public float getGamma() -
setGamma
public void setGamma(float gamma) -
isHasCHRM
public boolean isHasCHRM() -
getPngChromaticities
-
setPngChromaticities
-
getColorType
public int getColorType() -
setColorType
public void setColorType(int colorType) -
isIndexed
public boolean isIndexed() -
isGrayscaleImage
public boolean isGrayscaleImage()
-