Specifications
No
EPSON
TITLE
EPSON Advanced Printer Driver for TM series
StatusAPI
Reference Manual
Revision
L
NEXT
68
SHEET
67
3.48.BiSCNGetCroppingArea
[Function]
Acquires the cropping area set in the printer.
[Format]
int BiSCNGetCroppingArea( int nHandle, LPWORD pBuffSize, LPBYTE pBuff)
[Argument]
int nHandle
Specifies the handle value of the printer executing the function. The return value in BiOpenMonPrinter() is specified.
LPWORD pBuffSize
Specifies the size of memory where the cropping area information is set. The actual size of the scanned data is set.
LPBYTE pBuff
Specifies the memory address where the cropping area information is set. The information is set in the following format.
Cropping area No. (1 byte)
Cropping area starting X coordinate (1 byte)
Cropping area starting Y coordinate (1 byte)
Cropping area ending X coordinate (1 byte)
Cropping area ending Y coordinate (1 byte)
:
[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_ACCESS Reading/writing with the printer is not possible (printing in progress).
ERR_TIMEOUT A time out error occurred.
ERR_NOT_SUPPORT Not supported
ERR_PARAM
Parameter error
ERR_OFFLINE It was opened in the offline state, so it cannot be used until the online state is recovered.
ERR_BUFFER_OVER_FLOW (-140) Buffer capacity insufficient.
[Caution]
•
If this function is executed for the TM-H6000II, which is not equipped with a scanner, it ends with an ERR_TIMEOUT.
• If the buffer capacity is insufficient after this function is executed, the necessary number of bytes is set in pBuffSize. If
any other error occurs, nothing is set.
[Supported Printers]
TM-H6000II with scanner