◄Up► ◄Next► ◄Previous► ──────────────────────────────────────────────────────────────────────────── #define GETSCALINGFACTOR 14 short Control(lpDevice, GETSCALINGFACTOR, NULL, lpFactors) LPPDEVICE lpDevice; LPPOINT lpFactors; The GETSCALINGFACTOR 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 two to the location pointed to by the lpFactors parameter. For example, the value three is copied to lpFactors for a scaling factor of eight. Scaling factors are used by printing devices that cannot provide the same resolution as the device resolution. This escape communicates to GDI the factor by which it needs to stretch bitmaps when sending them to the printer. Parameter Description ──────────────────────────────────────────────────────────────────────────── lpDevice Points to a PDEVICE structure specifying the destination device. lpFactors Points to a POINT structure that receives the horizontal and vertical scaling factors in the x and y members, respectively. Return Value The return value is positive if the escape is successful. Otherwise, it is negative. See Also PDEVICE, POINT ♦