C# Class BExplorer.Shell.Interop.ShellThumbnail

Represents a thumbnail or an icon for a ShellObject.
Inheritance: IDisposable
Show file Open project: Gainedge/BetterExplorer

Public Methods

Method Description
Dispose ( ) : void
ExtractAndDrawThumbnail ( IntPtr hdc, uint iconSize, WTS_CACHEFLAGS &flags, User32 iconBounds, bool &retrieved, bool isHidden, bool isRefresh = false ) : HResult
GetBitmapFromHBitmap ( IntPtr nativeHBitmap ) : Bitmap
GetHBitmap ( System size, System.Boolean isCopyItem = false ) : IntPtr
IsAlphaBitmap ( Bitmap bmp, BitmapData &bmpData ) : bool
RefreshThumbnail ( uint iconSize, WTS_CACHEFLAGS &flags ) : System.Boolean

Private Methods

Method Description
CalculateFlags ( ) : SIIGBF
GetBitmap ( System size ) : Bitmap
GetBitmapSource ( System size, System.Boolean isCopyItem = false ) : System.Windows.Media.Imaging.BitmapSource
GetBitmapSource ( System iconOnlySize, System thumbnailSize ) : System.Windows.Media.Imaging.BitmapSource
GetlAlphaBitmapFromBitmapData ( BitmapData bmpData ) : Bitmap
ShellThumbnail ( ShellItem shellObject ) : System

Internal constructor that takes in a parent ShellObject.

Method Details

Dispose() public method

public Dispose ( ) : void
return void

ExtractAndDrawThumbnail() public method

public ExtractAndDrawThumbnail ( IntPtr hdc, uint iconSize, WTS_CACHEFLAGS &flags, User32 iconBounds, bool &retrieved, bool isHidden, bool isRefresh = false ) : HResult
hdc System.IntPtr
iconSize uint
flags WTS_CACHEFLAGS
iconBounds User32
retrieved bool
isHidden bool
isRefresh bool
return HResult

GetBitmapFromHBitmap() public method

public GetBitmapFromHBitmap ( IntPtr nativeHBitmap ) : Bitmap
nativeHBitmap System.IntPtr
return System.Drawing.Bitmap

GetHBitmap() public method

public GetHBitmap ( System size, System.Boolean isCopyItem = false ) : IntPtr
size System
isCopyItem System.Boolean
return System.IntPtr

IsAlphaBitmap() public static method

public static IsAlphaBitmap ( Bitmap bmp, BitmapData &bmpData ) : bool
bmp System.Drawing.Bitmap
bmpData System.Drawing.Imaging.BitmapData
return bool

RefreshThumbnail() public method

public RefreshThumbnail ( uint iconSize, WTS_CACHEFLAGS &flags ) : System.Boolean
iconSize uint
flags WTS_CACHEFLAGS
return System.Boolean