Class PbmFileInfo
java.lang.Object
org.apache.commons.imaging.formats.pnm.AbstractFileInfo
org.apache.commons.imaging.formats.pnm.PbmFileInfo
-
Field Summary
FieldsFields inherited from class AbstractFileInfo
height, rawBits, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintgetRgb(InputStream is) intgetRgb(WhiteSpaceReader wsr) booleanhasAlpha()protected voidnewline()Methods inherited from class AbstractFileInfo
readImage, readSample, scaleSample
-
Field Details
-
bitCache
private int bitCache -
bitsInCache
private int bitsInCache
-
-
Constructor Details
-
PbmFileInfo
PbmFileInfo(int width, int height, boolean rawbits)
-
-
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
-
newline
protected void newline()- Overrides:
newlinein classAbstractFileInfo
-