Class PamFileInfo
java.lang.Object
org.apache.commons.imaging.formats.pnm.AbstractFileInfo
org.apache.commons.imaging.formats.pnm.PamFileInfo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final classprivate final classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final booleanprivate final intprivate final floatprivate final PamFileInfo.TupleReaderFields inherited from class AbstractFileInfo
height, rawBits, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintgetRgb(InputStream is) intgetRgb(WhiteSpaceReader wsr) booleanhasAlpha()Methods inherited from class AbstractFileInfo
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 ImagingException - Throws:
ImagingException
-
-
Method Details
-
getBitDepth
public int getBitDepth()- Specified by:
getBitDepthin classAbstractFileInfo
-
getColorType
- Specified by:
getColorTypein classAbstractFileInfo
-
getImageType
- Specified by:
getImageTypein classAbstractFileInfo
-
getImageTypeDescription
- Specified by:
getImageTypeDescriptionin classAbstractFileInfo
-
getMimeType
- Specified by:
getMimeTypein classAbstractFileInfo
-
getNumComponents
public int getNumComponents()- Specified by:
getNumComponentsin classAbstractFileInfo
-
getRgb
- Specified by:
getRgbin classAbstractFileInfo- Throws:
IOException
-
getRgb
- Specified by:
getRgbin classAbstractFileInfo- Throws:
IOException
-
hasAlpha
public boolean hasAlpha()- Specified by:
hasAlphain classAbstractFileInfo
-