wx.Icon Class Reference

Inheritance diagram for wx.Icon:

wx.Bitmap wx.GDIObject wx.Object wx.ICanBeMadeReadonly

List of all members.

Public Member Functions

void CopyFromBitmap (Bitmap bitmap)
 Icon (IntPtr wxObject)
 Icon ()
 Icon (string resourceName, Assembly resourceAssembly)
 Icon (string name, BitmapType type)
 Icon (string name, bool enableException)
 Icon (string name)
 Icon (string archiveName, string resourceName)


Constructor & Destructor Documentation

wx.Icon.Icon ( string  archiveName,
string  resourceName 
)

CTor for ZipResource support.

Parameters:
archiveName Name of the archive file like "Resources.zrs".
resourceName Name of the resource in the resource file.

This will load an image resourceName from ZipResource file or directory archiveName.

 wx.ZipResource.AddCatalogLookupPrefix(@"..\Utils\MemLogDisplay");
 wx.Icon icon=new wx.Icon("archiveName.zrs", "iconname.png");

wx.Icon.Icon ( string  name  ) 

This loads the icon from a local file. This CTor will NOT raise exceptions but display a default icon if the file cannot be loaded. You may use the CTor requiring a BitmapType to specify alternative ways of loading.

Parameters:
name Filename of the icon to be displayed.

wx.Icon.Icon ( string  name,
bool  enableException 
)

This loads the icon from a local file. You may use the CTor requiring a BitmapType to specify alternative ways of loading.

Parameters:
name Filename of the icon to be displayed.
enableException Enables with true raising of exceptions if the file has not been found.
Exceptions:
System.ArgumentException Raised if enableExceptions and the icon file cannot be loaded.

wx.Icon.Icon ( string  name,
BitmapType  type 
)

Loads a bitmap of the provided type. Use wx.BitmapType.wxBITMAP_TYPE_ANY if you have no information on the type of the bitmap. Use wx.BitmapType.wxBITMAP_TYPE_RESOURCE to load a bitmap from the .NET resource named name.

wx.Icon.Icon ( string  resourceName,
Assembly  resourceAssembly 
)

Convenience CTor for reading the resource of the provided name from the provided assembly.

wx.Icon.Icon (  ) 

wx.Icon.Icon ( IntPtr  wxObject  ) 


Member Function Documentation

void wx.Icon.CopyFromBitmap ( Bitmap  bitmap  ) 


Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads