Class PpmFileInfo
java.lang.Object
org.apache.commons.imaging.formats.pnm.FileInfo
org.apache.commons.imaging.formats.pnm.PpmFileInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final int
private final float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
getRGB
(InputStream is) int
getRGB
(WhiteSpaceReader wsr) boolean
hasAlpha()
Methods inherited from class org.apache.commons.imaging.formats.pnm.FileInfo
newline, readImage, readSample, scaleSample
-
Field Details
-
max
private final int max -
scale
private final float scale -
bytesPerSample
private final int bytesPerSample
-
-
Constructor Details
-
PpmFileInfo
PpmFileInfo(int width, int height, boolean rawbits, int max) throws ImageReadException - Throws:
ImageReadException
-
-
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
-
getImageTypeDescription
- Specified by:
getImageTypeDescription
in classFileInfo
-
getMIMEType
- Specified by:
getMIMEType
in classFileInfo
-
getColorType
- Specified by:
getColorType
in classFileInfo
-
getRGB
- Specified by:
getRGB
in classFileInfo
- Throws:
IOException
-
getRGB
- Specified by:
getRGB
in classFileInfo
- Throws:
IOException
-