|
|
|
|
|
dTransferToImage (Function) In french: dTransfertVersImage Creates an image from a buffer of pixels encoded in a specific format. This function is an advanced function. This function is mainly used to handle the images returned by external APIs via Image variables.
VIRTUAL PROTECTED procedure __FrameSave(LOCAL nFrameNumber is <useful> int, ...
LOCAL stLock is NUI_LOCKED_RECT, local nImageType is <useful> int, ...
LOCAL nResolution is <useful> int)
nWidth is unsigned int
nHeight is unsigned int
NuiImageResolutionToSize(nResolution, nWidth, nHeight)
Transfer(&m_arrData, stLock.pBits, stLock.size)
SWITCH nImageType
CASE NUI_IMAGE_TYPE_COLOR
m_Pool = dTransferToImage(stLock.pBits, imgBGR32, nWidth, nHeight)
OTHER CASE
END
__DrawingFPS(m_Pool)
Syntax
<Result> = dTransferToImage(<Pointer> , <Type> , <Width> , <Height>)
<Result>: Image variable Name of the Image variable containing the image created from the buffer. An invalid image is returned if an error occurred. <Pointer>: Address Address of the buffer containing the pixels to load. <Type>: Integer constant Type of buffer used: | | imgBGR32 | Image in 32-bit Blue Green Red format without alpha channel. | imgBGR | Image in 24-bit Blue Green Red format. | imgBGRA | Image in 32-bit Blue Green Red format with alpha channel. | imgRGB32 | Image in 32-bit Red Green Blue format without alpha channel. |
<Width>: Integer Width of image. <Height>: Integer Height of image. Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|