PixelFormatConvert
|
|
[in] const char* pSrc
|
Pointer to the buffer containing the input image (top left pixel). The image data must be compatible with the pixel format specified by the inputFormat parameter.
|
|
[in] const char* pDst
|
String containing the name of the pixel format.
|
|
[in] unsigned int width
|
Integer value specifying the width of the image.
|
|
[in] unsigned int height
|
Integer value specifying the height of the image.
|
|
[in] unsigned int inputFormat
|
Integer value specifying the numerical ID of the input image format.
|
|
[in] unsigned int outputFormat
|
Integer value specifying the numerical ID of the output image format.
|
|
[in] unsigned int offsetX
|
Optional integer value specifying the horizontal offset of the upper left corner of the output image relative to the input one's.
|
|
[in] unsigned int offsetY
|
Optional integer value specifying the vertical offset of the upper left corner of the output image relative to the input one's.
|
|
[in] unsigned int sizeX
|
Optional integer value specifying the horizontal size of the output image. If zero or omitted, the right bottom corner of the output image will coincide with the input one's.
|
|
[in] unsigned int sizeY
|
Optional integer specifying the vertical size of the output image. If zero or omitted, the right bottom corner of the output image will coincide with the input one's.
|
|
|
|
S_OK
|
Success
|
E_FAIL
|
Failure
|
E_INVALIDARG
|
Unsupported format ID
|
|
|
|
|
|