C# Class WindowlessControls.WindowsCEIcon

Inheritance: PlatformBitmap
Mostra file Open project: koush/WindowlessControls

Public Methods

Method Description
Draw ( Graphics g, Rectangle dstRect, Rectangle srcRect ) : void
GetIcon ( string path, int index ) : Icon
GetThumbnail ( int width, int height ) : PlatformBitmap
WindowsCEIcon ( Icon icon ) : System

Private Methods

Method Description
DrawIconEx ( IntPtr hdc, int xLeft, int yTop, IntPtr hIcon, int width, int height, int animation, IntPtr flickerFree, uint drawFlags ) : bool
ExtractIconEx ( string file, int iconIndex, IntPtr &largeIcon, IntPtr &smallIcon, uint nIcons ) : IntPtr

Method Details

Draw() public method

public Draw ( Graphics g, Rectangle dstRect, Rectangle srcRect ) : void
g System.Drawing.Graphics
dstRect System.Drawing.Rectangle
srcRect System.Drawing.Rectangle
return void

GetIcon() public static method

public static GetIcon ( string path, int index ) : Icon
path string
index int
return System.Drawing.Icon

GetThumbnail() public method

public GetThumbnail ( int width, int height ) : PlatformBitmap
width int
height int
return PlatformBitmap

WindowsCEIcon() public method

public WindowsCEIcon ( Icon icon ) : System
icon System.Drawing.Icon
return System