Class PgmFileInfo
java.lang.Object
org.apache.commons.imaging.formats.pnm.FileInfo
org.apache.commons.imaging.formats.pnm.PgmFileInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintgetRGB(InputStream is) intgetRGB(WhiteSpaceReader wsr) booleanhasAlpha()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
-
PgmFileInfo
PgmFileInfo(int width, int height, boolean rawbits, int max) throws ImageReadException - Throws:
ImageReadException
-
-
Method Details
-
hasAlpha
public boolean hasAlpha() -
getNumComponents
public int getNumComponents()- Specified by:
getNumComponentsin classFileInfo
-
getBitDepth
public int getBitDepth()- Specified by:
getBitDepthin classFileInfo
-
getImageType
- Specified by:
getImageTypein classFileInfo
-
getImageTypeDescription
- Specified by:
getImageTypeDescriptionin classFileInfo
-
getMIMEType
- Specified by:
getMIMETypein classFileInfo
-
getColorType
- Specified by:
getColorTypein classFileInfo
-
getRGB
- Specified by:
getRGBin classFileInfo- Throws:
IOException
-
getRGB
- Specified by:
getRGBin classFileInfo- Throws:
IOException
-