Packages
 In this topic

*Constructors

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.awt   Previous This
Package
Next

 


Class ImageX

public class ImageX extends com.ms.awt.image.Image
{
  // Constructors
  public ImageX(Component c, int w, int h);
  public ImageX(ImageProducer producer);

  // Methods
  public int getCursor(int x, int y);
  public Graphics getGraphics();
  public int getIcon();
}

This class encapsulates an extended image object.

This class provides the getCursor and getIcon methods, which retrieve Win32 images for cursors and icons, respectively.

Image
  |
  +--ImageX

Constructors

ImageX

public ImageX(Component c, int w, int h);

Creates an image for offscreen rendering to be used with the specified Component.

ParameterDescription
c The Component that uses the image.
w The width of the image (in pixels).
h The height of the image (in pixels).

ImageX

public ImageX(ImageProducer producer);

Creates an image from an ImageProducer object.

ParameterDescription
producer The ImageProducer object to create the image for.

Methods

getCursor

public int getCursor(int x, int y);

Retrieves an ImageRepresentation of a native Win32 cursor based on the current ImageX object.

Return Value:

Returns the handle of a native cursor.

ParameterDescription
x The x coordinate of the cursor's hot spot.
y The y coordinate of the cursor's hot spot.

getGraphics

public Graphics getGraphics();

Creates a graphics context for drawing to an off-screen image.

Return Value:

Returns a Graphics object.

getIcon

public int getIcon();

Retrieves an ImageRepresentation of a native Win32 icon based on the current ImageX object.

Return Value:

Returns the handle of a native icon.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.