Class PngImageInfo
- java.lang.Object
-
- org.apache.commons.imaging.ImageInfo
-
- org.apache.commons.imaging.formats.png.PngImageInfo
-
public class PngImageInfo extends ImageInfo
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.imaging.ImageInfo
ImageInfo.ColorType, ImageInfo.CompressionAlgorithm
-
-
Field Summary
Fields Modifier and Type Field Description private PhysicalScalephysicalScaleprivate java.util.List<AbstractPngText>textChunks
-
Constructor Summary
Constructors Constructor Description PngImageInfo(java.lang.String formatDetails, int bitsPerPixel, java.util.List<java.lang.String> comments, ImageFormat format, java.lang.String formatName, int height, java.lang.String mimeType, int numberOfImages, int physicalHeightDpi, float physicalHeightInch, int physicalWidthDpi, float physicalWidthInch, int width, boolean progressive, boolean transparent, boolean usesPalette, ImageInfo.ColorType colorType, ImageInfo.CompressionAlgorithm compressionAlgorithm, java.util.List<AbstractPngText> textChunks, PhysicalScale physicalScale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PhysicalScalegetPhysicalScale()Gets the physical scale of Image.java.util.List<AbstractPngText>getTextChunks()-
Methods inherited from class org.apache.commons.imaging.ImageInfo
dump, getBitsPerPixel, getColorType, getComments, getCompressionAlgorithm, getFormat, getFormatDetails, getFormatName, getHeight, getMimeType, getNumberOfImages, getPhysicalHeightDpi, getPhysicalHeightInch, getPhysicalWidthDpi, getPhysicalWidthInch, getWidth, isProgressive, isTransparent, toString, toString, usesPalette
-
-
-
-
Field Detail
-
textChunks
private final java.util.List<AbstractPngText> textChunks
-
physicalScale
private final PhysicalScale physicalScale
-
-
Constructor Detail
-
PngImageInfo
PngImageInfo(java.lang.String formatDetails, int bitsPerPixel, java.util.List<java.lang.String> comments, ImageFormat format, java.lang.String formatName, int height, java.lang.String mimeType, int numberOfImages, int physicalHeightDpi, float physicalHeightInch, int physicalWidthDpi, float physicalWidthInch, int width, boolean progressive, boolean transparent, boolean usesPalette, ImageInfo.ColorType colorType, ImageInfo.CompressionAlgorithm compressionAlgorithm, java.util.List<AbstractPngText> textChunks, PhysicalScale physicalScale)
-
-
Method Detail
-
getPhysicalScale
public PhysicalScale getPhysicalScale()
Gets the physical scale of Image.- Returns:
PhysicalScale. If undefined thenPhysicalScale.UNDEFINEDis returned.
-
getTextChunks
public java.util.List<AbstractPngText> getTextChunks()
-
-