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

sourceValue
The source value to convert.
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.

Syntax

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

Parameters

sourceValue
The source value to convert.
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.

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.