public class ImageUtilities extends Object
This class is neither intended to be instantiated nor subclassed.
Constructor and Description |
---|
ImageUtilities() |
Modifier and Type | Method and Description |
---|---|
static void |
drawImage(Image image,
GC gc,
Canvas canvas,
Rectangle r,
int align)
Draws an image aligned inside the given rectangle on the given canvas.
|
static void |
drawImage(Image image,
GC gc,
Canvas canvas,
Rectangle r,
int halign,
int valign)
Draws an image aligned inside the given rectangle on the given canvas.
|
public static void drawImage(Image image, GC gc, Canvas canvas, Rectangle r, int halign, int valign)
image
- the image to be drawngc
- the drawing GCcanvas
- the canvas on which to drawr
- the clipping rectanglehalign
- the horizontal alignment of the image to be drawnvalign
- the vertical alignment of the image to be drawnpublic static void drawImage(Image image, GC gc, Canvas canvas, Rectangle r, int align)
image
- the image to be drawngc
- the drawing GCcanvas
- the canvas on which to drawr
- the clipping rectanglealign
- the alignment of the image to be drawn
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.