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 TypeMethodDescriptionint
int
int
getRGB
(InputStream is) int
getRGB
(WhiteSpaceReader wsr) boolean
hasAlpha()
protected void
newline()
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:
getNumComponents
in classFileInfo
-
getBitDepth
public int getBitDepth()- Specified by:
getBitDepth
in classFileInfo
-
getImageType
- Specified by:
getImageType
in classFileInfo
-
getColorType
- Specified by:
getColorType
in classFileInfo
-
getImageTypeDescription
- Specified by:
getImageTypeDescription
in classFileInfo
-
getMIMEType
- Specified by:
getMIMEType
in classFileInfo
-
newline
protected void newline() -
getRGB
- Specified by:
getRGB
in classFileInfo
- Throws:
IOException
-
getRGB
- Specified by:
getRGB
in classFileInfo
- Throws:
IOException
-