C# Class TileIconifier.Core.IconExtractor.IconUtil

Afficher le fichier Open project: Jonno12345/TileIconifier

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
GetIconData ( Icon icon ) : byte[]
IconUtil ( ) : System

Method Details

GetBitCount() public static méthode

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.
Résultat int

Split() public static méthode

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.
Résultat System.Drawing.Icon[]

ToBitmap() public static méthode

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.
Résultat System.Drawing.Bitmap