|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.erichseifert.vectorgraphics2d.GraphicsUtils
public abstract class GraphicsUtils
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 |
---|
public GraphicsUtils()
Method Detail |
---|
public static boolean hasAlpha(java.awt.Image image)
true
if the specified image
has transparent pixels.
Taken from http://www.exampledepot.com/egs/java.awt.image/HasAlpha.html
image
-
true
if the specified image has transparent pixels,
false
otherwisepublic static java.awt.image.BufferedImage toBufferedImage(java.awt.Image image)
image
- Image ot be converted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |