Padresetouttimeout; Padscale; Padscaledpi - Hand Held Products PadCom TT1500 User Manual

Point-of-sale terminal control library
Table of Contents

Advertisement

padResetOutTimeout

This function resets the time-out value used for the com port's output to the connected pad. This is not related to the time-
out used during the initial connection phase (see "padSetConnectTimeout" on page 3-52).
Syntax
unsigned int padResetOutTimeout(
void
)
Returns
Returns the default time-out setting
See Also
padSetOutTimout, padGetInTimeout, padGetOutTimeout, padSetInTimeout, padResetInTimeout,
padSetConnectTimeout, padGetConnectTimeout, padResetConnectTimeout

padScale

This function uses integer math to perform scaling by a given fraction.
Syntax
int padScale(
int Value,
int Numerator,
int Denominator
)
Parameter
Value
Numerator
Denominator
Returns
Returns the result of the scaling.
See Also
padScaleX, padScaleY, padScaleDPI, padScaleTo

padScaleDPI

Scales horizontal and vertical pad coordinates to a desired DPI resolution. This function is designed to provide proper aspect
ratio scaling for accurate output. 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 padScaleDPI(
int *X,
int *Y,
int HorzDPI,
int VertDPI
)
Description
The value to be scaled
The numerator of the fraction for the scale
The denominator of the fraction for the scale
3 - 47

Advertisement

Table of Contents
loading

This manual is also suitable for:

Padcom tt3100 series

Table of Contents