RpPrinter:_xLateVLogical2UnitofMeasure()  Method

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > RpPrinter Class >

RpPrinter:_xLateVLogical2UnitofMeasure()  Method

Previous pageReturn to chapter overviewNext page

Purpose

To translate a y-axis value from logical pixels into the unit of measure used by the RpPrinter class.

Syntax

<oRpPrinter>:_xLateVLogical2UnitofMeasure(nValue) Float

Arguments

nValue

Logical pixel value to convert.

Description

This low-level method translates a y-axis value from logical pixels into the unit of measure used by the RpPrinter class.  This method is not normally required, but is provided to allow you to easily mix Windows API functions and RpPrinter methods.

Example

// Convert 100 pixels into inches

oRpPrinter:UnitOfMeasure := UNIT_INCHES

? oRpPrinter:_xLateVLogical2UnitofMeasure( 100 )