C# Class TileIconifier.Core.IconExtractor.IconUtil

Mostrar archivo Open project: Jonno12345/TileIconifier

Public Methods

Method 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

Method Description
GetIconData ( Icon icon ) : byte[]
IconUtil ( ) : System

Method Details

GetBitCount() public static method

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

Split() public static method

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

ToBitmap() public static method

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