public class CursorTools
extends java.lang.Object
| Constructor and Description |
|---|
CursorTools() |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.image.BufferedImage |
createCompatibleTranslucentImage(int width,
int height)
Returns a new translucent compatible image of the specified width and
height.
|
static java.awt.Cursor |
createCursorWithImage(java.awt.image.BufferedImage smallImage) |
public static java.awt.Cursor createCursorWithImage(java.awt.image.BufferedImage smallImage)
throws java.lang.Exception
java.lang.Exceptionpublic static java.awt.image.BufferedImage createCompatibleTranslucentImage(int width,
int height)
Returns a new translucent compatible image of the specified width and
height. That is, the returned BufferedImage is compatible
with the graphics hardware. If the method is called in a headless
environment, then the returned BufferedImage will be compatible with the
source image.
width - the width of the new imageheight - the height of the new imageBufferedImage of the
specified width and height#createCompatibleImage(java.awt.image.BufferedImage),
#createCompatibleImage(java.awt.image.BufferedImage, int, int),
#createCompatibleImage(int, int),
#loadCompatibleImage(java.net.URL),
#toCompatibleImage(java.awt.image.BufferedImage)