GETSCALINGFACTOR

Syntax

short Escape(hDC, GETSCALINGFACTOR,NULL, NULL, lpFactors)

This escape retrieves the scaling factors for the x- and y-axes of a printing device. For each scaling factor, the escape copies an exponent of 2 to the location pointed to by the lpFactors parameter. For example, the value 3 is copied to lpFactors if the scaling factor is 8.

Scaling factors are used by printing devices that support graphics at a smaller resolution than text.

Parameter Type/Description  

hDC HDC Identifies the device context.  
lpFactors LPPOINT Points to the POINT data structure that will receive the scaling factor. The x field of the POINT structure receives the scaling factor for the x-axis, and the y field receives the scaling factor for the y-axis.  

Return Value

The return value specifies the outcome of the escape. It is positive if the escape is successful. Otherwise, it is negative.