Class PbmFileInfo
- java.lang.Object
-
- org.apache.commons.imaging.formats.pnm.FileInfo
-
- org.apache.commons.imaging.formats.pnm.PbmFileInfo
-
class PbmFileInfo extends FileInfo
-
-
Constructor Summary
Constructors Constructor Description PbmFileInfo(int width, int height, boolean rawbits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBitDepth()
ImageInfo.ColorType
getColorType()
ImageFormat
getImageType()
java.lang.String
getImageTypeDescription()
java.lang.String
getMIMEType()
int
getNumComponents()
int
getRGB(java.io.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
-
-
-
-
Method Detail
-
getNumComponents
public int getNumComponents()
- Specified by:
getNumComponents
in classFileInfo
-
getBitDepth
public int getBitDepth()
- Specified by:
getBitDepth
in classFileInfo
-
getImageType
public ImageFormat getImageType()
- Specified by:
getImageType
in classFileInfo
-
getColorType
public ImageInfo.ColorType getColorType()
- Specified by:
getColorType
in classFileInfo
-
getImageTypeDescription
public java.lang.String getImageTypeDescription()
- Specified by:
getImageTypeDescription
in classFileInfo
-
getMIMEType
public java.lang.String getMIMEType()
- Specified by:
getMIMEType
in classFileInfo
-
getRGB
public int getRGB(java.io.InputStream is) throws java.io.IOException
-
getRGB
public int getRGB(WhiteSpaceReader wsr) throws java.io.IOException
-
-