public class IGIBitmapReader extends java.lang.Object implements BitmapReader
BitmapReader.BitmapFormatException
Constructor and Description |
---|
IGIBitmapReader() |
public Bitmap load(java.lang.String filename, boolean isLinear) throws java.io.IOException, BitmapReader.BitmapFormatException
BitmapReader
BitmapReader.BitmapFormatException
may be
thrown. It is an error for this method to return null
.load
in interface BitmapReader
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