Package com.itextpdf.io.image
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 int
private float
private PngChromaticities
Fields inherited from class com.itextpdf.io.image.RawImageData
CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, typeCcitt
Fields inherited from class com.itextpdf.io.image.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
ConstructorsModifierConstructorDescriptionprotected
PngImageData
(byte[] bytes) protected
PngImageData
(URL url) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
int
float
getGamma()
boolean
boolean
boolean
void
setColorPalette
(byte[] colorPalette) void
setColorType
(int colorType) void
setGamma
(float gamma) void
setPngChromaticities
(PngChromaticities pngChromaticities) Methods inherited from class com.itextpdf.io.image.RawImageData
getTypeCcitt, isRawImage, setTypeCcitt
Methods inherited from class com.itextpdf.io.image.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()
-