/// <summary>
        /// Initializes a new instance of the FusionImageFrame class.
        /// </summary>
        /// <param name="imageType">The type of image frame to create.</param>
        /// <param name="width">The width of the image to create.</param>
        /// <param name="height">The height of the image to create.</param>
        /// <param name="cameraParameters">The Camera Parameters of the image.</param>
        internal FusionImageFrame(FusionImageType imageType, int width, int height, CameraParameters cameraParameters)
        {
            NativeFrameHandle handle;

            ExceptionHelper.ThrowIfFailed(
                NativeMethods.NuiFusionCreateImageFrame(
                    imageType,
                    (uint)width,
                    (uint)height,
                    cameraParameters,
                    out handle));

            Handle = handle;
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the FusionImageFrame class.
        /// </summary>
        /// <param name="imageType">The type of image frame to create.</param>
        /// <param name="width">The width of the image to create.</param>
        /// <param name="height">The height of the image to create.</param>
        /// <param name="cameraParameters">The Camera Parameters of the image.</param>
        internal FusionImageFrame(FusionImageType imageType, int width, int height, CameraParameters cameraParameters)
        {
            NativeFrameHandle handle;

            ExceptionHelper.ThrowIfFailed(
                NativeMethods.NuiFusionCreateImageFrame(
                imageType,
                (uint)width,
                (uint)height,
                cameraParameters,
                out handle));

            Handle = handle;
        }