FileReader::ReadImageSource

FileReader::ReadImageSource
virtual ImageSource* ReadImageSource(File* file, const ImageCreateArgs& args = ImageCreateArgs()) const;
Description

ReadImageSource creates a new image and reads TGA file contents into it. Only 24/32 bit formats are supported.

Parameters
Parameters 
Description 
File* file 
Pointer to the file stream from which the TGA data will be read. 
const ImageCreateArgs& args = ImageCreateArgs() 
The image arguments, see ImageCreateArgs
Return Value

ImageSource pointer to the created image. Null if the image data could not be loaded.