VintaSoft Twain .NET SDK 15.0: Documentation for .NET developer
Vintasoft.Twain Namespace / Device Class / LightSource Property
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
    LightSource Property (Device)
    In This Topic
    Gets or sets the general color characteristic of the light source for current scan session.
    Syntax
    'Declaration
    
    Public Property LightSource As LightSource
    
    
    public LightSource LightSource { get; set; }
    
    
    public: __property LightSource get_LightSource();
    public: __property void set_LightSource(
    LightSource value
    );
    public:
    property LightSource LightSource { LightSource get(); void set(LightSource value); }
    Exceptions
    ExceptionDescription
    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.
    Remarks

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

    Supported pixel types can be received by the GetSupportedLightSources method.

    Requirements

    Target Platforms: .NET 8, .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also