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
readerUtf8JsonReaderThe reader.
typeToConvertTypeThe type to convert.
optionsJsonSerializerOptionsAn 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
writerUtf8JsonWriterThe writer to write to.
colorProcessingModeoptionsJsonSerializerOptionsAn object that specifies serialization options to use.