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 final 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
-
-