VintaSoft Twain .NET SDK v10.2
LightSource Property (Device)




Vintasoft.Twain Namespace > Device Class : LightSource Property
Gets or sets the general color characteristic of the light source for current scan session.
Syntax
'Declaration
 
Public Property LightSource As LightSource
'Usage
 
Dim instance As Device
Dim value As LightSource
 
instance.LightSource = value
 
value = instance.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: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

See Also

Reference

Device Class
Device Members
GetSupportedLightSources Method
LampState Property
LightPath Property
Open Method