virtual ImageSource* ReadImageSource(File* file, const ImageCreateArgs& args = ImageCreateArgs()) const = 0;
ReadImageSource reads image file creating ImageSource object from which data can be decoded. ImageSource should be used temporarily, as it maintains internal file pointer; the user is responsible for calling Release (ReleaseTemporaryData)on it.
Parameters |
Description |
File* file |
Pointer to the file from which the image is read. |
const ImageCreateArgs& args = ImageCreateArgs() |
Reference to ImageCreateArgs for image arguments. |
An ImageSource pointer to the image created.