C# Class Microsoft.Windows.Controls.Ribbon.Primitives.RibbonWindowSmallIconConverter

Inheritance: IValueConverter
Mostrar archivo Open project: kasicass/kasicass

Public Methods

Method Description
Convert ( object value, Type targetType, object parameter, System culture ) : object

Returns small icon size variant (if available) of given icon.

ConvertBack ( object value, Type targetType, object parameter, System culture ) : object

Private Methods

Method Description
GenerateBitmapSource ( System.Windows.Media.ImageSource img, Size renderSize ) : System.Windows.Media.Imaging.BitmapSource

Creates a BitmapSource from an arbitrary ImageSource.

GetBestMatch ( ReadOnlyCollection frames, Size size ) : System.Windows.Media.Imaging.BitmapFrame
GetBitDepth ( ) : int
GetSmallIconImageSource ( System.Windows.Media.ImageSource imageSource ) : System.Windows.Media.ImageSource
MatchImage ( System.Windows.Media.Imaging.BitmapFrame frame, Size size, int bpp ) : int
WeightedAbs ( int valueHave, int valueWant, bool fPunish ) : int

Method Details

Convert() public method

Returns small icon size variant (if available) of given icon.
public Convert ( object value, Type targetType, object parameter, System culture ) : object
value object
targetType System.Type
parameter object
culture System
return object

ConvertBack() public method

public ConvertBack ( object value, Type targetType, object parameter, System culture ) : object
value object
targetType System.Type
parameter object
culture System
return object