CPrint.PixelsToPointsXmethod
Converts pixels to point size (1/72 of an inch) (horizontal resolution).
Syntax
FUNCTION PixelsToPointsX (BYVAL pix AS LONG) AS LONG
Parameters
| Name | Description | |
|---|---|---|
pix | The number of pixels to convert. |
Return value
LONG. The number of points. If there is not a printer attached, it returns 0.
Description
Converts pixels to point size (1/72 of an inch) according to the PPI of the printer (horizontal resolution).
Reference
- Include file
CPrint.inc - Defined in AfxNova/CPrint.inc:381
- Documented in Printing/CPrint Class.md
- Topic: CPrint Class