CodeCarvings.Piczard
GetValue Method
See Also  Send Feedback
CodeCarvings.Piczard Namespace > Measure Class : GetValue Method

baseValue
The base value to use when the Measure is relative (RelMeasure).
If the Measure is absolute (AbsMeasure) then this parameter is ignored.
baseUnit
The graphics unit in which the base value is expressed.
If the Measure is absolute (AbsMeasure) then this parameter is ignored.
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 Measure and converts it to the specified graphics unit.

Syntax

Visual Basic (Declaration)  
Public 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 use when the Measure is relative (RelMeasure).
If the Measure is absolute (AbsMeasure) then this parameter is ignored.
baseUnit
The graphics unit in which the base value is expressed.
If the Measure is absolute (AbsMeasure) then this parameter is ignored.
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

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.