C# Class CairoExplorer.FileToIconConverter

Exibir arquivo Open project: RevolutionSmythe/cairoshell

Public Methods

Method Description
ClearInstanceCache ( ) : void
FileToIconConverter ( ) : System
GetImage ( string fileName, IconSize size ) : System.Windows.Media.ImageSource
isVistaUp ( ) : bool

Private Methods

Method Description
DeleteObject ( IntPtr hObject ) : bool
GetFileIcon ( string fileName, IconSize size ) : Icon

Return large file icon of the specified file.

PollIconCallback ( object state ) : void
PollThumbnailCallback ( object state ) : void
SHGetFileInfo ( string pszPath, uint dwFileAttributes, SHFILEINFO &psfi, uint cbSizeFileInfo, uint uFlags ) : IntPtr
addToDic ( string fileName, IconSize size ) : System.Windows.Media.ImageSource
copyBitmap ( System.Windows.Media.Imaging.BitmapSource source, System.Windows.Media.Imaging.WriteableBitmap target, bool dispatcher ) : void
getDefaultSize ( IconSize size ) : Size
getImage ( string fileName, IconSize size ) : System.Windows.Media.Imaging.BitmapSource
isExecutable ( string fileName ) : bool
isFolder ( string path ) : bool
isImage ( string fileName ) : bool
loadBitmap ( Bitmap source ) : System.Windows.Media.Imaging.BitmapSource
loadJumbo ( string lookup ) : Bitmap
resizeImage ( Bitmap imgToResize, System size, int spacing ) : Bitmap
resizeJumbo ( Bitmap imgToResize, System size, int spacing ) : Bitmap
returnKey ( string fileName, IconSize size ) : string

Method Details

ClearInstanceCache() public method

public ClearInstanceCache ( ) : void
return void

FileToIconConverter() public method

public FileToIconConverter ( ) : System
return System

GetImage() public method

public GetImage ( string fileName, IconSize size ) : System.Windows.Media.ImageSource
fileName string
size IconSize
return System.Windows.Media.ImageSource

isVistaUp() public static method

public static isVistaUp ( ) : bool
return bool