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

unit
The graphics unit in which the value must be converted.
resolution
The resolution expressed in DPI (Dots Per Inch).

Converts the Value of the AbsMeasure to the specified graphics unit and then round it to the nearest integer.

Syntax

Visual Basic (Declaration)  
Public Overloads Function GetRoundedValue( _
   ByVal unit As GfxUnit, _
   ByVal resolution As Single _
) As Integer
C#  
public int GetRoundedValue( 
   GfxUnit unit,
   float resolution
)

Parameters

unit
The graphics unit in which the value must be converted.
resolution
The resolution expressed in DPI (Dots Per Inch).

Return Value

The measurement converted to the chosen graphics unit and then rounded it to the nearest integer.

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.