[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Capture_GenerateUrl")]
public static extern string GenerateUrl(HandleRef capture);
+ [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Capture_GetCapturedBuffer")]
+ public static extern IntPtr GetCapturedBuffer(HandleRef capture);
+
}
}
}
Tizen.Log.Debug("NUI", $"GetNativeImageSource()");
return new NativeImageSource(Interop.Capture.GetNativeImageSourcePtr(SwigCPtr), true);
}
+
+ /// <summary>
+ /// Get Captured buffer.
+ /// </summary>
+ /// <returns>PixelBuffer of captured buffer</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public PixelBuffer GetCapturedBuffer()
+ {
+ return new PixelBuffer(Interop.Capture.GetCapturedBuffer(SwigCPtr), true);
+ }
}
/// <summary>
if (sender is Capture)
{
log.Debug(tag, $"sender is Capture \n");
- var url = capture.GetNativeImageSource().Url;
+ PixelBuffer pixelBuffer = capture.GetCapturedBuffer();
+ PixelData pixelData = PixelBuffer.Convert(pixelBuffer);
+ var url = pixelData.Url;//capture.GetNativeImageSource().Url;
capturedImage = new ImageView(url);
log.Debug(tag, $"url={url} \n");