MakeCaptureResult() private static method

private static MakeCaptureResult ( CaptureResultType resultType, long hResult ) : PhotoCaptureResult
resultType CaptureResultType
hResult long
return PhotoCaptureResult
Beispiel #1
0
        private static void InvokeOnCapturedPhotoToMemoryDelegate(PhotoCapture.OnCapturedToMemoryCallback callback, long hResult, IntPtr photoCaptureFramePtr)
        {
            PhotoCaptureFrame photoCaptureFrame = null;

            if (photoCaptureFramePtr != IntPtr.Zero)
            {
                photoCaptureFrame = new PhotoCaptureFrame(photoCaptureFramePtr);
            }
            callback(PhotoCapture.MakeCaptureResult(hResult), photoCaptureFrame);
        }
Beispiel #2
0
 private static void InvokeOnCapturedPhotoToDiskDelegate(PhotoCapture.OnCapturedToDiskCallback callback, long hResult)
 {
     callback(PhotoCapture.MakeCaptureResult(hResult));
 }
Beispiel #3
0
 private static void InvokeOnPhotoModeStoppedDelegate(PhotoCapture.OnPhotoModeStoppedCallback callback, long hResult)
 {
     callback(PhotoCapture.MakeCaptureResult(hResult));
 }