SetResolutionX

#include "BiTwain.h"

 

int CALLBACK SetResolutionX(UINT resx)

Description

This function specifies the horizontal resolution of the scanner.

Important: Before scanning, if the scanner specific driver user interface is enabled, the driver most likely will overwrite the horizontal resolution value set by this function.

Parameters

UINT

resx

Horizontal resolution.

Return values

Return TW_OK on success or an error code on failure.
Return TW_INVALIDPARAMETER if the resx parameter is invalid for the scanner.

Requirements

Header :     Declared in BiTwain.h; include BiTwain.h.

Library :    Use BiTwain.lib.

DLLs :       BiTwain.dll.