Table of Contents

Method RedactToBytesAsync

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

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

attachment Attachment
request ImageRedactionRequest
options ImageRedactionOptions
cancellationToken CancellationToken

Returns

Task<ImageRedactionResult>

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

imageData byte[]
request ImageRedactionRequest
options ImageRedactionOptions
cancellationToken CancellationToken

Returns

Task<ImageRedactionResult>

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

inputPath string
request ImageRedactionRequest
options ImageRedactionOptions
cancellationToken CancellationToken

Returns

Task<ImageRedactionResult>
Share