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
Answertopia.com

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

  




 

 

Eclipse Rich Ajax Platform
Release 1.2

org.eclipse.swt.graphics
Class Image


java.lang.Object
  extended by

org.eclipse.swt.graphics.Resource
      extended by
org.eclipse.swt.graphics.Image

public final class Image
extends Resource

Instances of this class are graphics which have been prepared for display on a specific device. That is, they are to display on widgets with, for example, Button.setImage().

If loaded from a file format that supports it, an Image may have transparency, meaning that certain pixels are specified as being transparent when drawn. Examples of file formats that support transparency are GIF and PNG.

In RWT, images are shared among all sessions. Therefore they lack a public constructor. Images can be created using the getImage() methods of class Graphics

See Also:
Graphics.getImage(String), Graphics.getImage(String, ClassLoader), Graphics.getImage(String, java.io.InputStream)

Method Summary
  Rectangle getBounds ()
          Returns the bounds of the receiver.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBounds

public 
Rectangle getBounds()
Returns the bounds of the receiver. The rectangle will always have x and y values of 0, and the width and height of the image.

Returns:
a rectangle specifying the image's bounds
Throws:
SWTException -
  • ERROR_INVALID_IMAGE - if the image is not a bitmap or an icon

Eclipse Rich Ajax Platform
Release 1.2

Copyright (c) Innoopract Informationssysteme GmbH and others 2002, 2008. All rights reserved.


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