3 - 48
Parameter
Description
X
Pointer to an integer to hold the horizontal coordinate to be scaled
Y
Pointer to an integer to hold the vertical coordinate to be scaled
HorzDPI
The horizontal dots-per-inch resolution desired
VertDPI
The vertical dots-per-inch resolution desired
See Also
padScaleTo, padScaleX, padScaleY
padScaleTo
Scales horizontal and vertical pad coordinates based on a desired frame size. This function does not maintain the proper
aspect ratio unless the desired output frame is proportional to the pad surface. It converts the values pointed to by X and Y
pointers. NULL pointers may be passed for either X or Y parameters to suppress scaling of the associated coordinate.
Syntax
void padScaleTo(
int *X,
int *Y,
int Width,
int Height
)
Parameter
Description
X
Pointer to an integer to hold the horizontal coordinate to be scaled
Y
Pointer to an integer to hold the vertical coordinate to be scaled
Width
The horizontal size of the desired frame area
Height
The vertical size of the desired frame area
See Also
padScaleDPI, padScaleX, padScaleY
padScaleX
Scales a horizontal pad coordinate to a desired DPI resolution. This function is designed to provide proper aspect ratio
scaling for accurate output.
Syntax
int padScaleX(
int X,
int HorzDPI
)
Parameter
Description
X
An integer specifying the horizontal coordinate to be scaled
HorzDPI
The horizontal dots-per-inch resolution of the horizontal coordinate
Returns
Returns the horizontal position scaled to the desired DPI.
See Also
padScaleY, padScaleDPI
Summary of Contents for PadCom TT1500
Page 1: ... PadCom Point of Sale Terminal Control Library U s e r s G u i d e ...
Page 88: ...4 2 ...
Page 129: ......
Page 130: ......
Page 131: ......
Page 132: ... PadCom UG Rev A 4619 Jordan Road P O Box 187 Skaneateles Falls New York 13153 0187 ...