Package gov.nih.mipav.model.file
Class jxlatte.PNGWriter
java.lang.Object
gov.nih.mipav.model.file.jxlatte.PNGWriter
- Enclosing class:
jxlatte
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate jxlatte.ImageBuffer[]private intprivate intprivate CRC32private intprivate booleanprivate intprivate byte[]private intprivate DataOutputStreamprivate jxlatte.CIEPrimariesprivate intprivate jxlatte.CIEXYprivate intprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionPNGWriter(jxlatte.JXLImage image) PNGWriter(jxlatte.JXLImage image, boolean hdr) PNGWriter(jxlatte.JXLImage image, int bitDepth, boolean hdr, int peakDetect) PNGWriter(jxlatte.JXLImage image, int bitDepth, int deflateLevel, boolean hdr, int peakDetect) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetWriteSrgbIcc(boolean force) voidwrite(OutputStream outputStream) private voidprivate voidprivate voidprivate voidwriteSample(DataOutput dout, int sample) private void
-
Field Details
-
bitDepth
private int bitDepth -
buffer
-
out
-
height
private int height -
width
private int width -
colorMode
private int colorMode -
colorChannels
private int colorChannels -
alphaIndex
private int alphaIndex -
deflateLevel
private int deflateLevel -
primaries
-
whitePoint
-
crc32
-
iccProfile
private byte[] iccProfile -
hdr
private boolean hdr -
tf
private int tf -
maxValue
private int maxValue -
writeSrgbIcc
private boolean writeSrgbIcc
-
-
Constructor Details
-
PNGWriter
-
PNGWriter
-
PNGWriter
-
PNGWriter
public PNGWriter(jxlatte.JXLImage image, int bitDepth, int deflateLevel, boolean hdr, int peakDetect)
-
-
Method Details
-
setWriteSrgbIcc
public void setWriteSrgbIcc(boolean force) -
writeIHDR
- Throws:
IOException
-
writeSRGB
- Throws:
IOException
-
writeICCP
- Throws:
IOException
-
writeSample
- Throws:
IOException
-
writeIDAT
- Throws:
IOException
-
write
- Throws:
IOException
-