Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.text.source
Class ImageUtilities

java.lang.Object
  extended by 
org.eclipse.jface.text.source.ImageUtilities

public class ImageUtilities
extends Object

Provides methods for drawing images onto a canvas.

This class is neither intended to be instantiated nor subclassed.

Since:
3.0
Restriction:
This class is not intended to be subclassed by clients.
Restriction:
This class is not intended to be instantiated by clients.

Constructor Summary
ImageUtilities ()
           
 
Method Summary
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.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageUtilities

public ImageUtilities()
Method Detail

drawImage

public 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.

Parameters:
image - the image to be drawn
gc - the drawing GC
canvas - the canvas on which to draw
r - the clipping rectangle
halign - the horizontal alignment of the image to be drawn
valign - the vertical alignment of the image to be drawn

drawImage

public 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.

Parameters:
image - the image to be drawn
gc - the drawing GC
canvas - the canvas on which to draw
r - the clipping rectangle
align - the alignment of the image to be drawn

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire