Class FileInfo
java.lang.Object
org.apache.commons.imaging.formats.pnm.FileInfo
- Direct Known Subclasses:
PamFileInfo,PbmFileInfo,PgmFileInfo,PpmFileInfo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract int(package private) abstract ImageInfo.ColorType(package private) abstract ImageFormat(package private) abstract String(package private) abstract String(package private) abstract int(package private) abstract intgetRGB(InputStream is) (package private) abstract intgetRGB(WhiteSpaceReader wsr) (package private) abstract booleanhasAlpha()(package private) voidnewline()(package private) voidreadImage(ImageBuilder imageBuilder, InputStream is) (package private) static intreadSample(InputStream is, int bytesPerSample) (package private) static intscaleSample(int sample, float scale, int max)
-
Field Details
-
width
final int width -
height
final int height -
rawbits
final boolean rawbits
-
-
Constructor Details
-
FileInfo
FileInfo(int width, int height, boolean rawbits)
-
-
Method Details
-
hasAlpha
abstract boolean hasAlpha() -
getNumComponents
abstract int getNumComponents() -
getBitDepth
abstract int getBitDepth() -
getImageType
-
getImageTypeDescription
-
getMIMEType
-
getColorType
-
getRGB
- Throws:
IOException
-
getRGB
- Throws:
IOException
-
newline
void newline() -
readSample
- Throws:
IOException
-
scaleSample
- Throws:
IOException
-
readImage
- Throws:
IOException
-