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 intgetBitDepth()ImageInfo.ColorTypegetColorType()ImageFormatgetImageType()java.lang.StringgetImageTypeDescription()java.lang.StringgetMIMEType()intgetNumComponents()intgetRGB(java.io.InputStream is)intgetRGB(WhiteSpaceReader wsr)booleanhasAlpha()-
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:
getNumComponentsin classFileInfo
-
getBitDepth
public int getBitDepth()
- Specified by:
getBitDepthin classFileInfo
-
getImageType
public ImageFormat getImageType()
- Specified by:
getImageTypein classFileInfo
-
getImageTypeDescription
public java.lang.String getImageTypeDescription()
- Specified by:
getImageTypeDescriptionin classFileInfo
-
getMIMEType
public java.lang.String getMIMEType()
- Specified by:
getMIMETypein classFileInfo
-
getColorType
public ImageInfo.ColorType getColorType()
- Specified by:
getColorTypein classFileInfo
-
getRGB
public int getRGB(java.io.InputStream is) throws java.io.IOException
-
getRGB
public int getRGB(WhiteSpaceReader wsr) throws java.io.IOException
-
-