Method RedactToFileAsync
RedactToFileAsync(string, string, ImageRedactionRequest, ImageRedactionOptions, CancellationToken)
Asynchronously redacts the image at inputPath
and writes the result to outputPath.
public static Task<ImageRedactionReport> RedactToFileAsync(string inputPath, string outputPath, ImageRedactionRequest request, ImageRedactionOptions options = null, CancellationToken cancellationToken = default)
Parameters
inputPathstringoutputPathstringrequestImageRedactionRequestoptionsImageRedactionOptionscancellationTokenCancellationToken
Returns
RedactToFileAsync(Attachment, string, ImageRedactionRequest, ImageRedactionOptions, CancellationToken)
Asynchronously redacts the image carried by
attachment and writes the result to
outputPath.
public static Task<ImageRedactionReport> RedactToFileAsync(Attachment attachment, string outputPath, ImageRedactionRequest request, ImageRedactionOptions options = null, CancellationToken cancellationToken = default)
Parameters
attachmentAttachmentoutputPathstringrequestImageRedactionRequestoptionsImageRedactionOptionscancellationTokenCancellationToken