GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / TwainSetResolution Method
The new resolution.





In This Topic
TwainSetResolution Method (GdPictureImaging)
In This Topic
Tries to set the current resolution (in both x & y). Resolution is in dots per inch.
Syntax
'Declaration
 
Public Function TwainSetResolution( _
   ByVal Resolution As Integer _
) As Boolean
public bool TwainSetResolution( 
   int Resolution
)
public function TwainSetResolution( 
    Resolution: Integer
): Boolean; 
public function TwainSetResolution( 
   Resolution : int
) : boolean;
public: bool TwainSetResolution( 
   int Resolution
) 
public:
bool TwainSetResolution( 
   int Resolution
) 

Parameters

Resolution
The new resolution.

Return Value

True if success, else False -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.
Remarks
'The source may select this resolution, but don't assume it will. Before using this method check that the TWAIN state is 4 (TWAIN_SOURCE_OPEN) To get the TWAIN state, use the TwainGetState() method.
See Also