C# Class BExplorer.Shell.ImageList

A wrapper of IImageList.
Inheritance: IDisposable
Show file Open project: Gainedge/BetterExplorer

Public Methods

Method Description
Dispose ( ) : void
Dispose ( bool disposing ) : void
DrawIcon ( IntPtr hdc, int index, Point location, int newSize = -1, System.Boolean hidden = false ) : void

Draws the icon

DrawOverlay ( IntPtr hdc, int overlayIndex, Point location, int newSize = -1 ) : void

Draws the icon

GetIconIndexWithOverlay ( IntPtr path, int &overlayIndex ) : int

GetIndexOfOverlay ( int overlayIndex ) : int

Retrieves a specified image from the list of images used as overlay masks.

ImageList ( ImageListSize size ) : BExplorer.Shell.Interop

Private Methods

Method Description
DrawInternal ( IntPtr hdc, int index, int overlayIndex, ImageListDrawOptions options, ImageListDrawStates state, int alpha, Point location, int newSize ) : void

Draws the icon

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() public method

public Dispose ( bool disposing ) : void
disposing bool
return void

DrawIcon() public method

Draws the icon
public DrawIcon ( IntPtr hdc, int index, Point location, int newSize = -1, System.Boolean hidden = false ) : void
hdc System.IntPtr A handle to the destination device context.
index int The zero-based index of the image to be drawn.
location Point The x and y coordinates that specifies where the image is drawn.
newSize int The new size of the image (Double Check)
hidden System.Boolean
return void

DrawOverlay() public method

Draws the icon
public DrawOverlay ( IntPtr hdc, int overlayIndex, Point location, int newSize = -1 ) : void
hdc System.IntPtr A handle to the destination device context.
overlayIndex int The index of the overlay
location Point The x and y coordinates that specifies where the image is drawn.
newSize int The new size of the image (Double Check)
return void

GetIconIndexWithOverlay() public method

public GetIconIndexWithOverlay ( IntPtr path, int &overlayIndex ) : int
path System.IntPtr
overlayIndex int Index of the overlay icon that use for Draw or GetIndexOfOverlay method.
return int

GetIndexOfOverlay() public method

Retrieves a specified image from the list of images used as overlay masks.
public GetIndexOfOverlay ( int overlayIndex ) : int
overlayIndex int A value of type int that contains the one-based index of the overlay mask.
return int

ImageList() public method

public ImageList ( ImageListSize size ) : BExplorer.Shell.Interop
size ImageListSize
return BExplorer.Shell.Interop