Class PbmFileInfo
java.lang.Object
org.apache.commons.imaging.formats.pnm.FileInfo
org.apache.commons.imaging.formats.pnm.PbmFileInfo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintgetRGB(InputStream is) intgetRGB(WhiteSpaceReader wsr) booleanhasAlpha()protected voidnewline()Methods inherited from class org.apache.commons.imaging.formats.pnm.FileInfo
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
-
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
-
getColorType
- Specified by:
getColorTypein classFileInfo
-
getImageTypeDescription
- Specified by:
getImageTypeDescriptionin classFileInfo
-
getMIMEType
- Specified by:
getMIMETypein classFileInfo
-
newline
protected void newline() -
getRGB
- Specified by:
getRGBin classFileInfo- Throws:
IOException
-
getRGB
- Specified by:
getRGBin classFileInfo- Throws:
IOException
-