NuiFusionCreateImageFrame

Creates a new NUI_FUSION_IMAGE_FRAME object.

Syntax

HRESULT FUSIONAPI NuiFusionCreateImageFrame(
         NUI_FUSION_IMAGE_TYPE frameType,
         UINT width,
         UINT height,
         const NUI_FUSION_CAMERA_PARAMETERS *pCameraParameters,
         NUI_FUSION_IMAGE_FRAME **ppImageFrame
)

Parameters

  • frameType
    Type: NUI_FUSION_IMAGE_TYPE
    [in] The type of image frame to create.
  • width
    Type: UINT
    [in] The width of the frame, in pixels.
  • height
    Type: UINT
    [in] The height of the frame, in pixels.
  • pCameraParameters
    Type: NUI_FUSION_CAMERA_PARAMETERS
    [in, optional] The camera parameters associated with the frame.
  • ppImageFrame
    Type: NUI_FUSION_IMAGE_FRAME
    [out] The new NUI_FUSION_IMAGE_FRAME object.

Return value

Type: HRESULT FUSIONAPI
S_OK if successful; otherwise, returns a failure code.

Requirements

Header: nuikinectfusiondepthprocessor.h

Library: TBD