Namespace: Rx – Class: CRxImage – Header: Rx.Core.Ex/RxImage.h

CRxImage::ConvertMemory Static Method

C++
static bool ConvertMemory(void* pTrgMem, const void* pSrcMem, const CRxImageFormat& xTrgFormat, const CRxImageFormat& xSrcFormat)

Convert the pSrcMem memory to a different type and store result in memory pTrgMem.

Parameters

[void*] pTrgMem

[in] Target memory (must have correct target size).

[const void*] pSrcMem

Source memory.

[const CRxImageFormat&] xTrgFormat

The target image format.

[const CRxImageFormat&] xSrcFormat

The source image format.

Returns

bool

True if it succeeds, false if it fails.