Method RedactToBytesAsync
RedactToBytesAsync(Attachment, ImageRedactionRequest, ImageRedactionOptions, CancellationToken)
Asynchronously redacts the image carried by
attachment and returns the redacted bytes
together with the report.
public static Task<ImageRedactionResult> RedactToBytesAsync(Attachment attachment, ImageRedactionRequest request, ImageRedactionOptions options = null, CancellationToken cancellationToken = default)
Parameters
attachmentAttachmentrequestImageRedactionRequestoptionsImageRedactionOptionscancellationTokenCancellationToken
Returns
RedactToBytesAsync(byte[], ImageRedactionRequest, ImageRedactionOptions, CancellationToken)
Asynchronously redacts in-memory image bytes and returns the redacted bytes together with the report.
public static Task<ImageRedactionResult> RedactToBytesAsync(byte[] imageData, ImageRedactionRequest request, ImageRedactionOptions options = null, CancellationToken cancellationToken = default)
Parameters
imageDatabyte[]requestImageRedactionRequestoptionsImageRedactionOptionscancellationTokenCancellationToken
Returns
RedactToBytesAsync(string, ImageRedactionRequest, ImageRedactionOptions, CancellationToken)
Asynchronously redacts the image at inputPath
and returns the redacted bytes together with the report.
public static Task<ImageRedactionResult> RedactToBytesAsync(string inputPath, ImageRedactionRequest request, ImageRedactionOptions options = null, CancellationToken cancellationToken = default)
Parameters
inputPathstringrequestImageRedactionRequestoptionsImageRedactionOptionscancellationTokenCancellationToken