CodeCarvings.Piczard
GetValue(Single,GfxUnit,GfxUnit,Single) Method
See Also  Send Feedback
CodeCarvings.Piczard Namespace > RelMeasure Class > GetValue Method : GetValue(Single,GfxUnit,GfxUnit,Single) Method

baseValue
The base value to which the percent rate of the Value is applied.
baseUnit
The graphics unit in which the base value is expressed.
unit
The graphics unit in which the value must be converted.
resolution
The resolution expressed in DPI (Dots Per Inch).
Computes the absolute value of the RelMeasure and converts it to the specified graphics unit.

Syntax

Visual Basic (Declaration)  
Public Overloads Function GetValue( _
   ByVal baseValue As Single, _
   ByVal baseUnit As GfxUnit, _
   ByVal unit As GfxUnit, _
   ByVal resolution As Single _
) As Single
C#  
public float GetValue( 
   float baseValue,
   GfxUnit baseUnit,
   GfxUnit unit,
   float resolution
)

Parameters

baseValue
The base value to which the percent rate of the Value is applied.
baseUnit
The graphics unit in which the base value is expressed.
unit
The graphics unit in which the value must be converted.
resolution
The resolution expressed in DPI (Dots Per Inch).

Return Value

The calculated measurement converted to the chosen graphics unit.

Requirements

Requires Piczard 1.1.x or higher.

See Also

©2013 Sergio Turolla. All Rights Reserved.