|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgriffon.plugins.slideware.GraphicsUtil
public final class GraphicsUtil extends Object
Utilities for rendering images and graphics.
| Constructor Summary | |
GraphicsUtil()
|
|
| Method Summary | |
|---|---|
static BufferedImage
|
createCompatibleImage(int width, int height)
|
static BufferedImage
|
createCompatibleImage(int width, int height, boolean withAlpha)
|
static void
|
scaleAndDrawImage(Graphics g, float scale, String imageResource)
|
static void
|
scaleAndDrawImage(Graphics g, float scale, Image image)
|
static Rectangle
|
scaleBounds(int w, int h, Rectangle bounds)
|
static Rectangle
|
scaleBounds(int w, int h, Rectangle bounds, float fitAmount)
|
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Constructor Detail |
|---|
GraphicsUtil()
| Method Detail |
|---|
public static BufferedImage createCompatibleImage(int width, int height)
public static BufferedImage createCompatibleImage(int width, int height, boolean withAlpha)
public static void scaleAndDrawImage(Graphics g, float scale, String imageResource)
public static void scaleAndDrawImage(Graphics g, float scale, Image image)
public static Rectangle scaleBounds(int w, int h, Rectangle bounds)
public static Rectangle scaleBounds(int w, int h, Rectangle bounds, float fitAmount)
Groovy Documentation