Help Center

CPrint.PointsToPixelsYmethod

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

PrintingmethodCPrint.incdocumented

Syntax

FUNCTION PointsToPixelsY (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 (vertical resolution).

Reference

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