Table of Contents

Method RedactToFileAsync

Namespace
LMKit.Media.Image
Assembly
LM-Kit.NET.dll

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

inputPath string
outputPath string
request ImageRedactionRequest
options ImageRedactionOptions
cancellationToken CancellationToken

Returns

Task<ImageRedactionReport>

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

attachment Attachment
outputPath string
request ImageRedactionRequest
options ImageRedactionOptions
cancellationToken CancellationToken

Returns

Task<ImageRedactionReport>
Share