Implementation of a 2D image. More...
#include <Image.h>
Public Member Functions | |
const ImageDesc & | GetDesc () const |
Returns image description. | |
IDataBlob * | GetData () |
Returns a pointer to the image data. | |
bool | IsUniform () const |
Returns true if the image is uniform, i.e. all pixels have the same value. | |
Static Public Member Functions | |
static void | CreateFromMemory (const void *pSrcData, size_t SrcDataSize, const ImageLoadInfo &LoadInfo, Image **ppImage) |
Creates a new image from the data blob. | |
static void | CreateFromPixels (const ImageDesc &Desc, RefCntAutoPtr< IDataBlob > pPixels, Image **ppImage) |
Creates a new image using existing pixel data. | |
Implementation of a 2D image.
|
static |
Creates a new image from the data blob.
[in] | pFileData | - Pointer to the data blob containing image data |
[in] | LoadInfo | - Image loading information |
[out] | ppImage | - Memory location where pointer to the created image is written. The image should be released via Release(). |