DR Base to scale

4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next

version 6.0


DR Base to scale (area; value) Real

ParameterTypeDescription
areaLongint4D Draw area
valueRealValue in base units
Function resultRealValue in scale units

Description

The command DR Base to scale returns the size in scale units that value represents in area. value is specified in base units. One base unit is always equal to:

Scale Value / Base Value scale units.

DR Base to scale is useful in conjunction with commands that return base values.

Example

The following example gets the boundary of the selected objects and uses the values to display the width and height in scale units.

   DR GET BOUNDARY (Area;0;$Left;$Top;$Right;$Bottom)
   vWidth := DR Base to scale (Area;$Right - $Left)
   vHeight := DR Base to scale (Area;$Bottom - $Top)

See Also

DR GET RULER, DR Scale to base, DR SET RULER.


4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next