GETSCALINGFACTOR

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

The GETSCALINGFACTOR printer escape retrieves the scaling factors for the x-axis and y-axis 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.

Parameters

hdc

HDC Identifies the device context.

lpFactors

LPPOINT Points to the POINT structure that will receive the scaling factor. The x member of the POINT structure receives the scaling factor for the x-axis and the y member receives the scaling factor for the y-axis.

Return Value

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