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.ColorTypecolorType
-
Constructor Summary
Constructors Constructor Description GrayscaleTupleReader(ImageInfo.ColorType colorType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageInfo.ColorTypegetColorType()intgetRGB(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:
getColorTypein classPamFileInfo.TupleReader
-
getRGB
public int getRGB(java.io.InputStream is) throws java.io.IOException- Specified by:
getRGBin classPamFileInfo.TupleReader- Throws:
java.io.IOException
-
-