MemoryBufferImage(ImageFormat format, const ImageSize& size, unsigned use, ImageUpdateSync* sync, File* file, SInt64 filePos, UPInt length = 0); MemoryBufferImage(ImageFormat format, const ImageSize& size, unsigned use, ImageUpdateSync* sync, const UByte* data, UPInt dataSize);
Initializes MemoryBufferImage with the image contents.
Parameters |
Description |
ImageFormat format |
The image format to use for the data buffer. |
const ImageSize& size |
The desired size of the image. |
unsigned use |
The flag set as the capabilities of the image and its associated texture. |
ImageUpdateSync* sync |
Pointer to the ImageUpdateSync for image updates. |
File* file |
Pointer to the file from which the image is read. |
SInt64 filePos |
The position in the file where the data is read from. |
UPInt length = 0 |
The length of the file. |
const UByte* data |
The Image data. |
UPInt dataSize |
The size of the Image data. |