/// <summary> /// Create an encoded image stream of the currently drawn signature using the specified settings. /// </summary> public Task <Stream> GetImageStreamAsync(SignatureImageFormat imageFormat, ImageConstructionSettings settings) { var args = new ImageStreamRequestedEventArgs(imageFormat, settings); ImageStreamRequested?.Invoke(this, args); return(args.ImageStreamTask); }
/// <summary> /// Create an encoded image of the currently drawn signature using the specified settings. /// </summary> public Task <Stream> GetImageStreamAsync(SignatureImageFormat format, ImageConstructionSettings settings) { return(SignaturePadCanvas.GetImageStreamAsync(format, settings)); }
public ImageStreamRequestedEventArgs(SignatureImageFormat imageFormat, ImageConstructionSettings settings) { ImageFormat = imageFormat; Settings = settings; }