Groovy Documentation

griffon.plugins.slideware
[Java] Class GraphicsUtil

java.lang.Object
  griffon.plugins.slideware.GraphicsUtil

public final class GraphicsUtil
extends Object

Utilities for rendering images and graphics.

Authors:
Andres Almiray


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

GraphicsUtil()


 
Method Detail

createCompatibleImage

public static BufferedImage createCompatibleImage(int width, int height)


createCompatibleImage

public static BufferedImage createCompatibleImage(int width, int height, boolean withAlpha)


scaleAndDrawImage

public static void scaleAndDrawImage(Graphics g, float scale, String imageResource)


scaleAndDrawImage

public static void scaleAndDrawImage(Graphics g, float scale, Image image)


scaleBounds

public static Rectangle scaleBounds(int w, int h, Rectangle bounds)


scaleBounds

public static Rectangle scaleBounds(int w, int h, Rectangle bounds, float fitAmount)


 

Groovy Documentation