/// <summary>Creates a result object providing the given bitmap.</summary> /// <param name="bitmap"> /// The bitmap to be provided. Setting this to null will create a failure result object. /// </param> public TextBitmapDataResult(WinRT.Interop.Graphics.IBitmap bitmap) { fHasSucceeded = (bitmap != null); fMessage = String.Empty; fBitmapInfo = (bitmap != null) ? bitmap.Info : null; fBitmap = bitmap; }
/// <summary>Creates a result object with the given bitmap information.</summary> /// <param name="info"> /// The bitmap information to be provided. Setting this to null will create a failure result object. /// </param> public TextBitmapDataResult(WinRT.Interop.Graphics.BitmapInfo info) { fHasSucceeded = (info != null); fMessage = String.Empty; fBitmapInfo = info; fBitmap = null; }