Class PamFileInfo
java.lang.Object
org.apache.commons.imaging.formats.pnm.FileInfo
org.apache.commons.imaging.formats.pnm.PamFileInfo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate classprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final booleanprivate final intprivate final floatprivate final PamFileInfo.TupleReader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintgetRGB(InputStream is) intgetRGB(WhiteSpaceReader wsr) booleanhasAlpha()Methods inherited from class org.apache.commons.imaging.formats.pnm.FileInfo
newline, readImage, readSample, scaleSample
-
Field Details
-
depth
private final int depth -
maxval
private final int maxval -
scale
private final float scale -
bytesPerSample
private final int bytesPerSample -
hasAlpha
private final boolean hasAlpha -
tupleReader
-
-
Constructor Details
-
PamFileInfo
PamFileInfo(int width, int height, int depth, int maxval, String tupleType) throws ImageReadException - Throws:
ImageReadException
-
-
Method Details
-
hasAlpha
public boolean hasAlpha() -
getNumComponents
public int getNumComponents()- Specified by:
getNumComponentsin classFileInfo
-
getBitDepth
public int getBitDepth()- Specified by:
getBitDepthin classFileInfo
-
getImageType
- Specified by:
getImageTypein classFileInfo
-
getImageTypeDescription
- Specified by:
getImageTypeDescriptionin classFileInfo
-
getMIMEType
- Specified by:
getMIMETypein classFileInfo
-
getColorType
- Specified by:
getColorTypein classFileInfo
-
getRGB
- Specified by:
getRGBin classFileInfo- Throws:
IOException
-
getRGB
- Specified by:
getRGBin classFileInfo- Throws:
IOException
-