VintaSoft Twain .NET SDK 15.3: Руководство для .NET разработчика
Vintasoft.WinTwain Namespace / Device Class / SetResolution(Single,Single) Method
Синтаксис Exceptions Ремарки Требования Смотрите также
В этом разделе
    SetResolution(Single,Single) Метод (Device)
    В этом разделе
    Sets the resolution of images for current scan session.
    Синтаксис
    'Declaration
    
    Public Sub SetResolution( _
    ByVal xResolution
    X resolution in pixels per inch.
    As Single, _
    ByVal yResolution
    Y resolution in pixels per inch.
    As Single _
    )
    public void SetResolution(
    float xResolution,
    float yResolution
    )
    public: void SetResolution(
    float xResolution,
    float yResolution
    )
    public:
    void SetResolution(
    float xResolution,
    float yResolution
    )

    Parameters

    xResolution
    X resolution in pixels per inch.
    yResolution
    Y resolution in pixels per inch.
    Исключения
    ИсключениеОписание
    Thrown if device is in wrong state.
    Thrown if device does not support capability.
    Thrown if the .NET debugger is used and the function evaluation requires all threads to run.
    Ремарки

    Call this property only when device is opened (State == DeviceState.Opened).

    Supported resolutions can be received by the GetSupportedHorizontalResolutions method.

    Important: Use this method if you cannot use the Resolution property, for example, in JavaScript.

    Требования

    Целевые платформы: .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    Смотрите также