Help Center

CPrint.PixelsToPointsYmethod

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

PrintingmethodCPrint.incdocumented

Syntax

FUNCTION PixelsToPointsY (BYVAL pix AS LONG) AS LONG

Parameters

NameDescription
pixThe 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 (vertical resolution).

Reference

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