Icon.Icon

Overview | Methods | This Package | All Packages

Icon.Icon

Syntax

public Icon( int handle )

public Icon( String fileName )

public Icon( Class type, String resource )

public Icon( IDataStream stream )

public Icon( IDataStream stream, int width, int height )

public Icon( IStream stream )

public Icon( IStream stream, int width, int height )

public Icon( IPicture picture )

Parameters

handle

A Win32 icon handle (HICON). The Icon object does not claim ownership of this handle; you must free it manually.

fileName

The name of an icon file that stores the icon on which to base this object.

type

The class used to load the icon resource.

resource

The resource to load.

stream

A data stream (IDataStream or com.ms.wfc.ole32.IStream) from which to load the icon.

width

The width of the icon.

height

The height of the icon.

picture

An OLE com.ms.wfc.ole32.IPicture object that contains the icon to load.