C# Класс TileIconifier.Core.IconExtractor.IconExtractor

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GetDataFromResource ( IntPtr hModule, IntPtr type, IntPtr name ) : byte[]
GetFileName ( IntPtr hModule ) : string
Initialize ( string fileName ) : void

Описание методов

GetAllIcons() публичный Метод

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[]
Результат System.Drawing.Icon[]

GetIcon() публичный Метод

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.
Результат System.Drawing.Icon

IconExtractor() публичный Метод

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.
Результат System