public class TGABitmapReader extends Object implements BitmapReader
BitmapReader.BitmapFormatException
Constructor and Description |
---|
TGABitmapReader() |
Modifier and Type | Method and Description |
---|---|
Bitmap |
load(String filename,
boolean isLinear)
Load the specified filename.
|
public Bitmap load(String filename, boolean isLinear) throws 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
objectIOException
BitmapReader.BitmapFormatException
Copyright © 2017. All rights reserved.