Share via


DepthImageFrame.MapToColorImagePoint Method

Kinect for Windows 1.5, 1.6, 1.7, 1.8

Obsolete starting with version 1.6; replaced by the CoordinateMapper.MapDepthPointToColorPoint Method. In versions prior to 1.6, this method maps a depth coordinate to a color coordinate.

Syntax

public ColorImagePoint MapToColorImagePoint (
         int depthX,
         int depthY,
         ColorImageFormat colorImageFormat
)
'Declaration
Public Function MapToColorImagePoint ( _
         depthX As Integer, _
         depthY As Integer, _
         colorImageFormat As ColorImageFormat _
) As ColorImagePoint 

Parameters

  • depthX
    Type: Int32
    The x-coordinate of the depth frame.
  • depthY
    Type: Int32
    The y-coordinate of the depth frame.
  • colorImageFormat
    Type: ColorImageFormat
    The color format.

Return Value

Type: ColorImagePoint
An ImagePoint that contains the x, y locations in the color frame.

Remarks

There is a known issue with calling this method when the sensor is stopped or disconnected.

Requirements

Namespace: Microsoft.Kinect

Assembly: Microsoft.Kinect (in microsoft.kinect.dll)

See Also

Reference

DepthImageFrame Class
DepthImageFrame Members
Microsoft.Kinect Namespace