Méthode | Description | |
---|---|---|
CreateBitmapSourceFromBitmap ( System bitmap ) : System.Windows.Media.Imaging.BitmapSource |
Converts Bitmap to BitmapSource
|
|
ExtractIcon ( string fileName, |
||
GetDefaultIcon ( ) : System.Windows.Media.Imaging.BitmapSource |
Gets the default icon from the resources. If this fails (e.g. the resource is missing or corrupt) the empty icon is returned.
|
|
GetImageFromAssociatedIcon ( string filename ) : System.Windows.Media.ImageSource |
Retrieves the Icon for the file name as an ImageSource
|
|
GetImageFromHIcon ( |
Retrieves the Icon for the Handle provided as an ImageSource.
|
Méthode | Description | |
---|---|---|
CreateBitmapSourceFromBitmap ( Stream stream ) : System.Windows.Media.Imaging.BitmapSource | ||
GenerateEmptyBitmapSource ( ) : System.Windows.Media.Imaging.BitmapSource |
Creates an empty bitmap source in the size of an Icon.
|
public static CreateBitmapSourceFromBitmap ( System bitmap ) : System.Windows.Media.Imaging.BitmapSource | ||
bitmap | System | |
Résultat | System.Windows.Media.Imaging.BitmapSource |
public static ExtractIcon ( string fileName, |
||
fileName | string | |
HWnd | ||
Résultat |
public static GetDefaultIcon ( ) : System.Windows.Media.Imaging.BitmapSource | ||
Résultat | System.Windows.Media.Imaging.BitmapSource |
public static GetImageFromAssociatedIcon ( string filename ) : System.Windows.Media.ImageSource | ||
filename | string | The filename of the file to query the Icon for. |
Résultat | System.Windows.Media.ImageSource |
public static GetImageFromHIcon ( |
||
hIcon | The icon's handle (HICON). | |
Résultat | System.Windows.Media.ImageSource |