Icon Class

Icon Class

This Package | All Packages

Image
  |
  +--Icon
public class Icon
extends Image
implements IPersistable

Implements a Windows icon as a WFC object.

Constructors
Name Description
Icon(int handle) Topic under construction.
Icon(int handle, boolean fOwned) Topic under construction.
Icon(String fileName) Topic under construction.
Icon(Class type, String resource) Topic under construction.
Icon(IDataStream stream) Topic under construction.
Icon(IStream stream) Topic under construction.
Icon(IPicture picture) Topic under construction.

Methods
Name Description
copyHandle(int h) Retrieves a copy of the icon.
copyHandle() Retrieves a copy of the icon.
drawStretchTo(Graphics g, int x, int y, int width, int height, int rop) Draws the icon to the given DC and stretches it to the given width and height.
drawTo(Graphics g, int x, int y, int width, int height, int rop) Draws the icon to the given device context (DC).
finalize() Clean up our HBITMAP.
getExtension() Topic under construction.
getHandle() Topic under construction.
getPICTDESC() Topic under construction.
getSize() Topic under construction.
toString() Topic under construction.

Constructors

Icon.Icon

Syntax 1
public Icon( int handle );
Description

Topic under construction.



Syntax 2
public Icon( int handle, boolean fOwned );
Description

Topic under construction.



Syntax 3
public Icon( String fileName );
Description

Topic under construction.



Syntax 4
public Icon( Class type, String resource );
Description

Topic under construction.



Syntax 5
public Icon( IDataStream stream );
Description

Topic under construction.



Syntax 6
public Icon( IStream stream );
Description

Topic under construction.



Syntax 7
public Icon( IPicture picture );
Description

Topic under construction.

Methods

Icon.copyHandle

Syntax 1
public static int copyHandle( int h );
Parameters
h
The handle to the icon.
Description

Retrieves a copy of the icon.



Syntax 2
public static int copyHandle();
Description

Retrieves a copy of the icon.

Icon.drawStretchTo

Syntax
public void drawStretchTo( Graphics g, int x, int y, int width, int height, int rop );
Parameters
g
The HDC to draw to (supplied by Graphics).
x
The x-coordinate at which to start drawing.
y
The y-coordinate at which to start drawing.
width
The width to stretch the icon to.
height
The height to stretch the icon to.
rop
The ROP code.
Description

Draws the icon to the given DC and stretches it to the given width and height.

Icon.drawTo

Syntax
public void drawTo( Graphics g, int x, int y, int width, int height, int rop );
Parameters
g
The HDC to draw to (supplied by Graphics).
x
The x-coordinate at which to start drawing.
y
The y-coordinate at which to start drawing.
width
The width of the icon.
height
The height of the icon.
rop
The ROP code.
Description

Draws the icon to the given device context (DC).

Icon.finalize

Syntax
public void finalize();
Description

Clean up our HBITMAP.

Icon.getExtension

Syntax
public String getExtension();
Description

Topic under construction.

Icon.getHandle

Syntax
public int getHandle();
Description

Topic under construction.

Icon.getPICTDESC

Syntax
public PICTDESC getPICTDESC();
Description

Topic under construction.

Icon.getSize

Syntax
public Point getSize();
Description

Topic under construction.

Icon.toString

Syntax
public String toString();
Description

Topic under construction.