The GetAspectRatioFilterEx function retrieves the setting for the current aspect-ratio filter.
BOOL GetAspectRatioFilterEx(
HDC hdc, | // handle to device context |
LPSIZE lpAspectRatio | // pointer to aspect-ratio filter |
); |
Parameters
hdc
Identifies a device context.
lpAspectRatio
Points to a SIZE structure that receives the current aspect-ratio filter.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
The aspect ratio is the ratio formed by the width and height of a pixel on a given device.
Windows provides a special filter, the aspect-ratio filter, to select fonts that were designed for a particular device. An application can specify that Windows should only retrieve fonts matching the specified aspect ratio by calling the SetMapperFlags function.
See Also