コード例 #1
0
 /// <summary>
 /// Convert the image with handle <paramref name="nativeHandle"/> using the provided
 /// <paramref cref="conversionParams"/>.
 /// </summary>
 /// <param name="nativeHandle">A unique identifier for the camera image to convert.</param>
 /// <param name="conversionParams">The parameters to use during the conversion.</param>
 /// <param name="destinationBuffer">A buffer to write the converted image to.</param>
 /// <param name="bufferLength">The number of bytes available in the buffer.</param>
 /// <returns>
 /// <c>true</c> if the image was converted and stored in <paramref name="destinationBuffer"/>.
 /// </returns>
 public override bool TryConvert(
     int nativeHandle,
     XRCameraImageConversionParams conversionParams,
     IntPtr destinationBuffer,
     int bufferLength)
 {
     return(NativeApi.UnityARKit_Camera_TryConvert(
                nativeHandle, conversionParams, destinationBuffer, bufferLength));
 }