public interface BitmapReader
Modifier and Type | Interface and Description |
---|---|
static class |
BitmapReader.BitmapFormatException
This exception can be used internally by bitmap readers to signal they
have encountered a valid file but which contains invalid content.
|
Bitmap load(java.lang.String filename, boolean isLinear) throws java.io.IOException, BitmapReader.BitmapFormatException
BitmapReader.BitmapFormatException
may be
thrown. It is an error for this method to return null
.filename
- image filename to loadisLinear
- if this is true
, the bitmap is assumed to
be already in linear space. This can be usefull when reading
greyscale images for bump mapping for example. HDR formats can
ignore this flag since they usually always store data in
linear form.Bitmap
objectjava.io.IOException
BitmapReader.BitmapFormatException