C# Class Microsoft.R.Components.Plots.Implementation.WpfUnitsConversion

Show file Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
FromPixels ( System.Windows.PresentationSource source, Size pixelSize ) : Size
GetResolution ( System.Windows.PresentationSource source ) : int
ToPixels ( System.Windows.PresentationSource source, Point wpfSize ) : Point
ToPixels ( System.Windows.PresentationSource source, Size wpfSize ) : Size

Method Details

FromPixels() public static method

public static FromPixels ( System.Windows.PresentationSource source, Size pixelSize ) : Size
source System.Windows.PresentationSource
pixelSize System.Windows.Size
return System.Windows.Size

GetResolution() public static method

public static GetResolution ( System.Windows.PresentationSource source ) : int
source System.Windows.PresentationSource
return int

ToPixels() public static method

public static ToPixels ( System.Windows.PresentationSource source, Point wpfSize ) : Point
source System.Windows.PresentationSource
wpfSize Point
return Point

ToPixels() public static method

public static ToPixels ( System.Windows.PresentationSource source, Size wpfSize ) : Size
source System.Windows.PresentationSource
wpfSize System.Windows.Size
return System.Windows.Size