Leadtools.Twain Namespace > TwainSession Class : Resolution Property |
public SizeF Resolution {get; set;}
'Declaration Public Property Resolution As SizeF
'Usage Dim instance As TwainSession Dim value As SizeF instance.Resolution = value value = instance.Resolution
public SizeF Resolution {get; set;}
get_Resolution();
set_Resolution(value);
Public Sub ResolutionExample(ByVal parent As IWin32Window) Dim session As TwainSession = New TwainSession() session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None) Dim res As SizeF = session.Resolution res.Width = 300 res.Height = 300 session.Resolution = res session.Shutdown() End Sub
public void ResolutionExample(IWin32Window parent) { TwainSession session = new TwainSession(); session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None); SizeF res = session.Resolution; res.Width = 300; res.Height = 300; session.Resolution = res; session.Shutdown(); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
TwainSession Class
TwainSession Members
Startup Method
Shutdown Method
Acquire Method
MaximumTransferCount Property
DuplexScanningMode Property
EnableDuplexScanning Property
AcquirePageOptions Property
ImageEffects Property
ImageBitsPerPixel Property
ImageUnit Property
ImageFrame Property
TransferOptions Property
IsTransferModeAvailable Method
Resolution Property
ShowProgressIndicator Method