C# Class TileIconifier.Core.IconExtractor.IconExtractor

显示文件 Open project: Jonno12345/TileIconifier Class Usage Examples

Public Methods

Method 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

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

Method Details

GetAllIcons() public method

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[]
return System.Drawing.Icon[]

GetIcon() public method

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.
return System.Drawing.Icon

IconExtractor() public method

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.
return System