1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.commons.imaging.formats.png;
18
19 import java.util.ArrayList;
20 import java.util.List;
21
22 import org.apache.commons.imaging.ImageFormat;
23 import org.apache.commons.imaging.ImageInfo;
24
25 public class PngImageInfo extends ImageInfo {
26
27 private final List<AbstractPngText> textChunks;
28 private final PhysicalScale physicalScale;
29
30 PngImageInfo(final String formatDetails, final int bitsPerPixel, final List<String> comments, final ImageFormat format, final String formatName,
31 final int height, final String mimeType, final int numberOfImages, final int physicalHeightDpi, final float physicalHeightInch,
32 final int physicalWidthDpi, final float physicalWidthInch, final int width, final boolean progressive, final boolean transparent,
33 final boolean usesPalette, final ColorType colorType, final CompressionAlgorithm compressionAlgorithm, final List<AbstractPngText> textChunks,
34 final PhysicalScale physicalScale) {
35 super(formatDetails, bitsPerPixel, comments, format, formatName, height, mimeType, numberOfImages, physicalHeightDpi, physicalHeightInch,
36 physicalWidthDpi, physicalWidthInch, width, progressive, transparent, usesPalette, colorType, compressionAlgorithm);
37
38 this.textChunks = textChunks;
39 this.physicalScale = physicalScale;
40 }
41
42
43
44
45
46
47 public PhysicalScale getPhysicalScale() {
48 return physicalScale;
49 }
50
51 public List<AbstractPngText> getTextChunks() {
52 return new ArrayList<>(textChunks);
53 }
54
55 }