| Herd Software Development
|=
DaVinci Graphics Library
|==
DaVinci Documentation Home Search Order


Leonardo: Function TWAINSetResolution

Sets the Scan resolution in Dot Per Inch used for the next call to TWAINAquireExt.

BOOL FAR PASCAL TWAINSetResolution(
HTWAINACCESS hta,
UINT uDPI,
DWORD dwReserved);
hta Handle to TWAIN memory created by TWAINInitialize
uDPI Determines the resolution Dot Per Inch. An inch = 25,4 millimeters
dwReserved Reserved for future use. Applications always specify 0.

Returned value:

The returned value is TRUE if setting the resolution was successful. It is FALSE in case of an error.

Comment

The data source needs to be opened to set the resolution and therefore, the data source manager is necessarily also opened. An error can occur if the data source does not support setting the resolution or if opening the data source failed.

Þ problems with TWAIN - implementations

Þ function TWAINAquireExt

Þ function TWAINSetRect

Þ function TWAINCallDS

Þ function TWAINIsDSMOpen