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 Draw2d
3.3

org.eclipse.draw2d
Class ImageUtilities

java.lang.Object
  extended by
org.eclipse.draw2d.ImageUtilities

public class ImageUtilities
extends java.lang.Object

Since:
3.0

Constructor Summary
ImageUtilities ()
           
 
Method Summary
static Image createRotatedImage (Image srcImage)
          Returns a new Image that is the given Image rotated left by 90 degrees.
static Image createRotatedImageOfString (java.lang.String string, Font font, Color foreground, Color background)
          Returns a new Image with the given String rotated left (by 90 degrees).
static ImageData createShadedImage (Image fromImage, Color shade)
          Creates an ImageData representing the given Image shaded with the given Color.
 
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

createRotatedImageOfString

public static Image createRotatedImageOfString(java.lang.String string,
                                               Font font,
                                               Color foreground,
                                               Color background)
Returns a new Image with the given String rotated left (by 90 degrees). The String will be rendered using the provided colors and fonts. The client is responsible for disposing the returned Image. Strings cannot contain newline or tab characters. This method MUST be invoked from the user-interface (Display) thread.

Parameters:
string - the String to be rendered
font - the font
foreground - the text's color
background - the background color
Returns:
an Image which must be disposed

createRotatedImage

public static Image createRotatedImage(Image srcImage)
Returns a new Image that is the given Image rotated left by 90 degrees. The client is responsible for disposing the returned Image. This method MUST be invoked from the user-interface (Display) thread.

Parameters:
srcImage - the Image that is to be rotated left
Returns:
the rotated Image (the client is responsible for disposing it)

createShadedImage

public static ImageData createShadedImage(Image fromImage,
                                          Color shade)
Creates an ImageData representing the given Image shaded with the given Color.

Parameters:
fromImage - Image that has to be shaded
shade - The Color to be used for shading
Returns:
A new ImageData that can be used to create an Image.

Eclipse Draw2d
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

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