Class PpmFileInfo
- java.lang.Object
-
- org.apache.commons.imaging.formats.pnm.FileInfo
-
- org.apache.commons.imaging.formats.pnm.PpmFileInfo
-
class PpmFileInfo extends FileInfo
-
-
Constructor Summary
Constructors Constructor Description PpmFileInfo(int width, int height, boolean rawbits, int max)
-
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()
-
Methods inherited from class org.apache.commons.imaging.formats.pnm.FileInfo
newline, readImage, readSample, scaleSample
-
-
-
-
Constructor Detail
-
PpmFileInfo
PpmFileInfo(int width, int height, boolean rawbits, int max) throws ImageReadException
- Throws:
ImageReadException
-
-
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
-
getImageTypeDescription
public java.lang.String getImageTypeDescription()
- Specified by:
getImageTypeDescription
in classFileInfo
-
getMIMEType
public java.lang.String getMIMEType()
- Specified by:
getMIMEType
in classFileInfo
-
getColorType
public ImageInfo.ColorType getColorType()
- Specified by:
getColorType
in classFileInfo
-
getRGB
public int getRGB(java.io.InputStream is) throws java.io.IOException
-
getRGB
public int getRGB(WhiteSpaceReader wsr) throws java.io.IOException
-
-