<< Click to display table of contents >> TRVStyle.PixelsToUnits, HTMLPixelsToUnits, StandardPixelsToUnits, TwipsToUnits, EMUToUnits, DifferentUnitsToUnits, RVUnitsToUnits |
The methods return Value converted from different units of measurement to Units.
function PixelsToUnits(Value: TRVCoord;
PixelsPerInch: Integer): TRVStyleLength;
function HTMLPixelsToUnits(Value: TRVPixel96Length): TRVStyleLength;
function StandardPixelsToUnits(
Value: TRVPixelLength): TRVStyleLength;
function TwipsToUnits(Value: Integer): TRVStyleLength;
function EMUToUnits(Value: Integer): TRVStyleLength;
function DifferentUnitsToUnits(Value: TRVStyleLength;
Units: TRVStyleUnits): TRVStyleLength;
function RVUnitsToUnits(Value: TRVLength;
RVUnits: TRVUnits): TRVStyleLength;
(introduced in versions 13, 18)
Method |
Converts from |
---|---|
PixelsToUnits |
Pixels. 1 pixel = 1/PixelsPerInch of an inch (where PixelsPerInch is specified as a parameter) |
HTMLPixelsToUnits |
Pixels. 1 pixel = 1/96 of an inch. |
StandardPixelsToUnits |
Pixels. 1 pixel = 1/UnitsPixelsPerInch of an inch. |
TwipsToUnits |
Twips. 1 twip = 1/20 of an inch. |
EMUToUnits |
EMU. 1 EMU = 1/914400 of an inch = 1/36000 mm. |
DifferentUnitsToUnits |
Units (specified in the parameter). When converting to/from pixels, UnitsPixelsPerInch is used as DPI. |
RVUnitsToUnits |
RVUnits (specified in the parameter). When converting to/from pixels, UnitsPixelsPerInch is used as DPI. |
When these methods convert a nonzero Value to pixels, the result cannot be less than 1 (or -1 for a negative Value).
See also:
▪GetAs* methods;
▪ConvertTo* methods;