C# Класс CairoDesktop.Imaging

Показать файл Открыть проект

Открытые методы

Метод Описание
CreateBitmapSourceFromBitmap ( System bitmap ) : System.Windows.Media.Imaging.BitmapSource

Converts Bitmap to BitmapSource

ExtractIcon ( string fileName, IntPtr HWnd ) : Icon
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 ( IntPtr hIcon ) : System.Windows.Media.ImageSource

Retrieves the Icon for the Handle provided as an ImageSource.

Приватные методы

Метод Описание
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.

Описание методов

CreateBitmapSourceFromBitmap() публичный статический Метод

Converts Bitmap to BitmapSource
public static CreateBitmapSourceFromBitmap ( System bitmap ) : System.Windows.Media.Imaging.BitmapSource
bitmap System
Результат System.Windows.Media.Imaging.BitmapSource

ExtractIcon() публичный статический Метод

public static ExtractIcon ( string fileName, IntPtr HWnd ) : Icon
fileName string
HWnd System.IntPtr
Результат System.Drawing.Icon

GetDefaultIcon() публичный статический Метод

Gets the default icon from the resources. If this fails (e.g. the resource is missing or corrupt) the empty icon is returned.
public static GetDefaultIcon ( ) : System.Windows.Media.Imaging.BitmapSource
Результат System.Windows.Media.Imaging.BitmapSource

GetImageFromAssociatedIcon() публичный статический Метод

Retrieves the Icon for the file name as an ImageSource
public static GetImageFromAssociatedIcon ( string filename ) : System.Windows.Media.ImageSource
filename string The filename of the file to query the Icon for.
Результат System.Windows.Media.ImageSource

GetImageFromHIcon() публичный статический Метод

Retrieves the Icon for the Handle provided as an ImageSource.
public static GetImageFromHIcon ( IntPtr hIcon ) : System.Windows.Media.ImageSource
hIcon System.IntPtr The icon's handle (HICON).
Результат System.Windows.Media.ImageSource