SCGetPageSize(3) Impressario SCGetPageSize(3)NAMESCGetPageSize - determine the scannable area of a scanning device
SYNOPSIS
#include <stdio.h>
#include <scanner.h>
int SCGetPageSize(SCANNER *s, int metric, float *x, float *y,
float *width, float *height);
DESCRIPTIONSCGetPageSize queries a scanner for the size of the scannable area. s
specifies a connection to a scanner previously obtained from a call to
SCOpen(3), SCOpenFile(3), or SCOpenScreen(3). metric is used to specify
whether the results are required to be in inches (SC_INCHES) or
centimeters (SC_CENTIM). SCGetPageSize returns the x and y coordinates
of the upper left hand corner of the scannable area in x and y, and the
width and height of the scannable area in width and height.
RETURN VALUESCGetPageSize returns 0 if successful. In the event of an error,
SCGetPageSize returns -1 and sets the global variable SCerrno to indicate
the reason for failure.
EXECUTION ERROR CODESSCGetPageSize will fail under the following circumstances.
SCEBADMETRIC Unsupported metric
SCECOMM Error communicating with scanner driver
SEE ALSOlibscan(3), SCOpen(3), SCSetup(3).
Page 1