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

Показать файл Открыть проект

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

Метод Описание
GetBitCount ( Icon icon ) : int

Gets the bit depth of an Icon.

This method takes into account the PNG header. If the icon has multiple variations, this method returns the bit depth of the first variation.

Split ( Icon icon ) : System.Drawing.Icon[]

Split an Icon consists of multiple icons into an array of Icon each consists of single icons.

ToBitmap ( Icon icon ) : Bitmap

Converts an Icon to a GDI+ Bitmap preserving the transparent area.

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

Метод Описание
GetIconData ( Icon icon ) : byte[]
IconUtil ( ) : System

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

GetBitCount() публичный статический Метод

Gets the bit depth of an Icon.
This method takes into account the PNG header. If the icon has multiple variations, this method returns the bit depth of the first variation.
public static GetBitCount ( Icon icon ) : int
icon System.Drawing.Icon An System.Drawing.Icon object.
Результат int

Split() публичный статический Метод

Split an Icon consists of multiple icons into an array of Icon each consists of single icons.
public static Split ( Icon icon ) : System.Drawing.Icon[]
icon System.Drawing.Icon A System.Drawing.Icon to be split.
Результат System.Drawing.Icon[]

ToBitmap() публичный статический Метод

Converts an Icon to a GDI+ Bitmap preserving the transparent area.
public static ToBitmap ( Icon icon ) : Bitmap
icon System.Drawing.Icon An System.Drawing.Icon to be converted.
Результат System.Drawing.Bitmap