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 PhysicalScale
physicalScale
private java.util.List<PngText>
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<PngText> textChunks, PhysicalScale physicalScale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PhysicalScale
getPhysicalScale()
Physical scale of Image.java.util.List<PngText>
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<PngText> 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<PngText> textChunks, PhysicalScale physicalScale)
-
-
Method Detail
-
getTextChunks
public java.util.List<PngText> getTextChunks()
-
getPhysicalScale
public PhysicalScale getPhysicalScale()
Physical scale of Image.- Returns:
PhysicalScale
. If undefined thenPhysicalScale.UNDEFINED
is returned.
-
-