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