This method retrieves the smallest size that can be scanned with a given scan device.

[Visual Basic]
Public Function GetMinimumSize() As System.Drawing.SizeF
Public Function GetMinimumSize(ByVal dpiX As Integer, ByVal dpiY As Integer) As System.Drawing.SizeF
[C#]
public System.Drawing.SizeF GetMinimumSize();
public System.Drawing.SizeF GetMinimumSize(int dpiX, int dpiY);

Parameters

dpiX
   The horizontal resolution (in dots per inch)

dpiY
   The vertical resolution (in dots per inch)

Return Value

The smallest size that can be scanned (If unsuccessful, the Height and Width properties of the SizeF structure will be 0)

Explanation

The GetMinimumSize method retrieves the smallest size that can be scanned with a given scan device. To retrieve the smallest size the DataSourceName, Mode, and Unit properties must be set. If the DataSourceName property is blank then prior to executing this method, please execute the SelectDataSource method. (If the OpenDataSource method has been executed, the DataSourceName is disabled and the open scan device will be used.) Set the Mode property from 0 to 2 and set the Unit to values supported by the datasource (scan device). The Width and Height parameters of the SizeF structure will return values depending on the Mode and Unit properties.

To execute the GetMinimumSize method you must first execute the Initialize method. If the OpenDataSource method is executed prior to executing the GetMinimumSize method then the open datasource cannot be used by another application until that datasource (scan device) is closed.

See Also

Scan Members | Newtone.ImageKit.Wpf.ImageKit

The ImageKit WPF is created by Newtone Corporation