C# Class TileIconifier.Core.IconExtractor.IconExtractor

Afficher le fichier Open project: Jonno12345/TileIconifier Class Usage Examples

Méthodes publiques

Méthode Description
GetAllIcons ( ) : System.Drawing.Icon[]

Extracts all the icons from the file.

Always returns new copies of the Icons. They should be disposed by the user.

GetIcon ( int index ) : Icon

Extracts an icon from the file.

Always returns new copy of the Icon. It should be disposed by the user.

IconExtractor ( string fileName ) : System

Initializes a new instance of the IconExtractor class from the specified file name.

Private Methods

Méthode Description
GetDataFromResource ( IntPtr hModule, IntPtr type, IntPtr name ) : byte[]
GetFileName ( IntPtr hModule ) : string
Initialize ( string fileName ) : void

Method Details

GetAllIcons() public méthode

Extracts all the icons from the file.
Always returns new copies of the Icons. They should be disposed by the user.
public GetAllIcons ( ) : System.Drawing.Icon[]
Résultat System.Drawing.Icon[]

GetIcon() public méthode

Extracts an icon from the file.
Always returns new copy of the Icon. It should be disposed by the user.
public GetIcon ( int index ) : Icon
index int Zero based index of the icon to be extracted.
Résultat System.Drawing.Icon

IconExtractor() public méthode

Initializes a new instance of the IconExtractor class from the specified file name.
public IconExtractor ( string fileName ) : System
fileName string The file to extract icons from.
Résultat System