RpPrinter:_xLateHUnitofMeasure2Logical() Method
<< Click to Display Table of Contents >> RpPrinter:_xLateHUnitofMeasure2Logical() Method |
![]() ![]() ![]() |
Purpose
To translate a x-axis value from the unit of measure used by the RpPrinter class into logical pixels.
Syntax
<oRpPrinter>:_xLateHUnitofMeasure2 Logical(nValue) → ShortInt
Arguments
nValue |
Unit of measure value to convert. |
Description
This low-level method translates a x-axis value from the unit of measure used by the RpPrinter class into logical pixels. This method is not normally required, but is provided to allow you to easily mix Windows API functions and RpPrinter methods.
Example
// Convert 1.5 inches into pixels
oRpPrinter:UnitOfMeasure := UNIT_INCHES
? oRpPrinter:_xLateHUnitofMeasure2Logical( 1.5 )