Class PgmFileInfo
java.lang.Object
org.apache.commons.imaging.formats.pnm.AbstractFileInfo
org.apache.commons.imaging.formats.pnm.PgmFileInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final floatFields 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
-
max
private final int max -
scale
private final float scale -
bytesPerSample
private final int bytesPerSample
-
-
Constructor Details
-
PgmFileInfo
PgmFileInfo(int width, int height, boolean rawbits, int max) 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
-