Help Center

CPrint.PointsToPixelsXmethod

Converts a point size (1/72 of an inch) to pixels (horizontal resolution).

PrintingmethodCPrint.incdocumented

Syntax

FUNCTION PointsToPixelsX (BYVAL pts AS LONG) AS LONG

Parameters

NameDescription
ptsThe number of points to convert.

Return value

LONG. The number of pixels. If there is not a printer attached, it returns 0.

Description

Converts a point size (1/72 of an inch) to pixels according to the PPI of the printer (horizontal resolution).

Reference

  • Include file CPrint.inc
  • Defined in AfxNova/CPrint.inc:404
  • Documented in Printing/CPrint Class.md
  • Topic: CPrint Class