Table of Contents

Class ProcessingModeConverter

Namespace
ScanbotSDK.MAUI.Core.Common
Assembly
ScanbotSDK.Shared.dll

Scanners typically can produce better results from a single image if they are allowed to spend a longer time analyzing it. On the other hand, scanners can produce even better results if they can analyze multiple images of the same subject and cross-check and combine the results. The processing mode tells the scanner whether to optimize for single or multiple images of a subject.

public class ProcessingModeConverter : JsonConverter<ProcessingMode>
Inheritance
ProcessingModeConverter
Inherited Members

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type ProcessingMode.

public override ProcessingMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters

reader Utf8JsonReader

The reader.

typeToConvert Type

The type to convert.

options JsonSerializerOptions

An object that specifies serialization options to use.

Returns

ProcessingMode

The converted value.

Write(Utf8JsonWriter, ProcessingMode, JsonSerializerOptions)

Writes a specified value as JSON.

public override void Write(Utf8JsonWriter writer, ProcessingMode color, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter

The writer to write to.

color ProcessingMode
options JsonSerializerOptions

An object that specifies serialization options to use.