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 int
getRGB
(InputStream is) (package private) abstract int
getRGB
(WhiteSpaceReader wsr) (package private) abstract boolean
hasAlpha()
(package private) void
newline()
(package private) void
readImage
(ImageBuilder imageBuilder, InputStream is) (package private) static int
readSample
(InputStream is, int bytesPerSample) (package private) static int
scaleSample
(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
-