Table of Contents

Class DpiCaps

Namespace
NAPS2.Scan
Assembly
NAPS2.Sdk.dll

Represents valid values for ScanOptions.Dpi as part of PerSourceCaps.

public class DpiCaps
Inheritance
DpiCaps

Properties

CommonValues

Recommended values for ScanOptions.Dpi to be presented to the user.

public ImmutableList<int>? CommonValues { get; }

Property Value

ImmutableList<int>?

Values

Allowed values for ScanOptions.Dpi.

public ImmutableList<int>? Values { get; init; }

Property Value

ImmutableList<int>?

Methods

ForRange(int, int, int)

Creates an instance of DpiCaps that allows values in the specified range.

public static DpiCaps ForRange(int min, int max, int step)

Parameters

min int

The lowest valid DPI value, inclusive.

max int

The highest valid DPI value, inclusive.

step int

The increment between valid DPI values (must be >0).

Returns

DpiCaps