de.erichseifert.vectorgraphics2d
Class GraphicsUtils

java.lang.Object
  extended by de.erichseifert.vectorgraphics2d.GraphicsUtils

public abstract class GraphicsUtils
extends java.lang.Object

Abstract class that contains utility functions for working with graphics. For example, this includes font handling.


Constructor Summary
GraphicsUtils()
           
 
Method Summary
static boolean hasAlpha(java.awt.Image image)
          This method returns true if the specified image has transparent pixels.
static java.awt.image.BufferedImage toBufferedImage(java.awt.Image image)
          This method returns a buffered image with the contents of an image.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphicsUtils

public GraphicsUtils()
Method Detail

hasAlpha

public static boolean hasAlpha(java.awt.Image image)
This method returns true if the specified image has transparent pixels. Taken from http://www.exampledepot.com/egs/java.awt.image/HasAlpha.html

Parameters:
image -
Returns:
true if the specified image has transparent pixels, false otherwise

toBufferedImage

public static java.awt.image.BufferedImage toBufferedImage(java.awt.Image image)
This method returns a buffered image with the contents of an image. Taken from http://www.exampledepot.com/egs/java.awt.image/Image2Buf.html

Parameters:
image - Image ot be converted
Returns:
a buffered image with the contents of the specified image


Copyright © 2010. All Rights Reserved.