Specifications

No
EPSON
TITLE
EPSON Advanced Printer Driver for TM series
StatusAPI
Reference Manual
Revision
L
NEXT
54
SHEET
53
3.36.BiSCNPreScan
[Function]
This sets the printer’s density threshold value after prescanning of the image and returns the set density threshold value. (An
image can be scanned at the threshold value obtained from the prescan operation only in the case that this function is called
and the image is scanned without ejecting the paper (BiSCNSetImageQuality).)
[Format]
int BiSCNPreScan( int nHandle, LPBYTE pResultStatus, char *pThreshold)
[Argument]
int nHandle
Specifies the handle value of the printer executing the function. The return value in BiOpenMonPrinter() is specified.
LPBYTE pResultStatus
Specifies the memory address where the prescan results status is set. The set value is as shown below.
Value Bit Function
0 1
0,1,2,3,4 Reserved Fixed at 0
5 Execution Results Ends normally. Ends with an error.
6 Fixed Fixed at 1.
7 Fixed Fixed at 0
Char pThreshold
This specifies the memory address where the prescanning results, the threshold value of the density of the paper’s
automatically measured density, is set. The value is set if the prescanning results are successful, and if the prescanning
results are not successful, no value is set, so this value becomes indefinite. It is necessary to judge the Prescan results
from PresultStatus.
[Return Values]
If execution is successful, 0 is returned. If an error occurs, the following error codes (negative values) are returned.
ERR_HANDLE The handle value specified for the printer is incorrect.
ERR_PARAM
Parameter error
.
ERR_TIMEOUT A time out error occurred.
ERR_NOT_SUPPORT Not supported
ERR_ACCESS Reading/writing with the printer is not possible (printing in progress).
ERR_OFFLINE It was opened in the offline state, so it cannot be used until the online state is recovered.
[Caution]
If this function is executed for the TM-H6000II, which is not equipped with a scanner, it ends with an ERR_TIMEOUT.
[Supported Printers]
TM-H6000II with scanner