C# 클래스 CairoDesktop.Imaging

파일 보기 프로젝트 열기: RevolutionSmythe/cairoshell

공개 메소드들

메소드 설명
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