Class PamFileInfo.GrayscaleTupleReader
- java.lang.Object
-
- org.apache.commons.imaging.formats.pnm.PamFileInfo.TupleReader
-
- org.apache.commons.imaging.formats.pnm.PamFileInfo.GrayscaleTupleReader
-
- Enclosing class:
- PamFileInfo
private class PamFileInfo.GrayscaleTupleReader extends PamFileInfo.TupleReader
-
-
Field Summary
Fields Modifier and Type Field Description private ImageInfo.ColorType
colorType
-
Constructor Summary
Constructors Constructor Description GrayscaleTupleReader(ImageInfo.ColorType colorType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageInfo.ColorType
getColorType()
int
getRGB(java.io.InputStream is)
-
-
-
Field Detail
-
colorType
private final ImageInfo.ColorType colorType
-
-
Constructor Detail
-
GrayscaleTupleReader
GrayscaleTupleReader(ImageInfo.ColorType colorType)
-
-
Method Detail
-
getColorType
public ImageInfo.ColorType getColorType()
- Specified by:
getColorType
in classPamFileInfo.TupleReader
-
getRGB
public int getRGB(java.io.InputStream is) throws java.io.IOException
- Specified by:
getRGB
in classPamFileInfo.TupleReader
- Throws:
java.io.IOException
-
-