CodeCarvings.Piczard
ConvertAndRound(PointF,GfxUnit,GfxUnit,Single) Method
See Also  Send Feedback
CodeCarvings.Piczard Namespace > GfxUnitConverter Class > ConvertAndRound Method : ConvertAndRound(PointF,GfxUnit,GfxUnit,Single) Method

sourceValue
The source value to convert and round.
sourceUnit
The graphics unit in which the source value is expressed.
destUnit
The graphics unit in which the value must be converted.
resolution
The resolution expressed in DPI (Dots Per Inch).
Converts a measurement expressed in one GfxUnit to another GfxUnit and then round it to the nearest integer.

Syntax

Visual Basic (Declaration)  
Public Overloads Shared Function ConvertAndRound( _
   ByVal sourceValue As PointF, _
   ByVal sourceUnit As GfxUnit, _
   ByVal destUnit As GfxUnit, _
   ByVal resolution As Single _
) As Point
C#  
public static Point ConvertAndRound( 
   PointF sourceValue,
   GfxUnit sourceUnit,
   GfxUnit destUnit,
   float resolution
)

Parameters

sourceValue
The source value to convert and round.
sourceUnit
The graphics unit in which the source value is expressed.
destUnit
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.