Interface supported by Raytrix images.
Inherited by Rx::CRxImage, and Rx::CRxImageMoniker.
Public Member Functions | |
virtual bool | Create (int iWidth, int iHeight, Rx::Interop::Runtime28::EPixelType::ID ePixelType, Rx::Interop::Runtime28::EDataType::ID eDataType)=0 |
Create an image of given type and size and reserve the appropriate amount of memory. We can use as input types enums as they stay compatible between module versions even if the enum declarations have different numbers of entries. More... | |
virtual bool | Create (int iWidth, int iHeight, Rx::Interop::Runtime28::EPixelType::ID ePixelType, Rx::Interop::Runtime28::EDataType::ID eDataType, const void *pData)=0 |
Create an image of given type and size and copy the data from the given pointer. More... | |
virtual bool | Create (const IImage *pImage)=0 |
Create image from given image. More... | |
virtual bool | Destroy ()=0 |
Destroy image. More... | |
virtual unsigned | GetByteCount () const =0 |
Gets the byte count. More... | |
virtual int | GetBytesPerPixel () const =0 |
Gets the bytes per pixel. More... | |
virtual void * | GetDataPtr ()=0 |
Gets the data pointer. More... | |
virtual const void * | GetDataPtr () const =0 |
Gets the data pointer. More... | |
virtual unsigned | GetPixelCount () const =0 |
Gets the pixel count. More... | |
virtual void | GetSize (int &iWidth, int &iHeight) const =0 |
Gets the size of this image. More... | |
virtual void | GetType (Rx::Interop::Runtime28::EPixelType::ID &ePixelType, Rx::Interop::Runtime28::EDataType::ID &eDataType) const =0 |
Gets the type of this image. More... | |
virtual bool | IsValid () const =0 |
Test whether this image exists. More... | |
|
pure virtual |
Create an image of given type and size and reserve the appropriate amount of memory. We can use as input types enums as they stay compatible between module versions even if the enum declarations have different numbers of entries.
iWidth | Zero-based index of the width. |
iHeight | Zero-based index of the height. |
ePixelType | Type of the pixel. |
eDataType | Type of the data. |
Implemented in Rx::CRxImage, and Rx::CRxImageMoniker.
|
pure virtual |
Create an image of given type and size and copy the data from the given pointer.
iWidth | Zero-based index of the width. |
iHeight | Zero-based index of the height. |
ePixelType | Type of the pixel. |
eDataType | Type of the data. |
pData | The data. |
Implemented in Rx::CRxImage, and Rx::CRxImageMoniker.
|
pure virtual |
Create image from given image.
pImage | The image. |
Implemented in Rx::CRxImage, and Rx::CRxImageMoniker.
|
pure virtual |
Destroy image.
Implemented in Rx::CRxImage, and Rx::CRxImageMoniker.
|
pure virtual |
|
pure virtual |
Gets the bytes per pixel.
Implemented in Rx::CRxImage, and Rx::CRxImageMoniker.
|
pure virtual |
Gets the data pointer.
Implemented in Rx::CRxImage, and Rx::CRxImageMoniker.
|
pure virtual |
Gets the data pointer.
Implemented in Rx::CRxImage, and Rx::CRxImageMoniker.
|
pure virtual |
|
pure virtual |
Gets the size of this image.
iWidth | [out] The width. |
iHeight | [out] The height. |
Implemented in Rx::CRxImage, and Rx::CRxImageMoniker.
|
pure virtual |
Gets the type of this image.
ePixelType | [out] Type of the pixel. |
eDataType | [out] Type of the data. |
Implemented in Rx::CRxImageMoniker, and Rx::CRxImage.
|
pure virtual |
Test whether this image exists.
Implemented in Rx::CRxImage, and Rx::CRxImageMoniker.