public abstract class SwingUniversalImage extends Object
Constructor and Description |
---|
SwingUniversalImage() |
Modifier and Type | Method and Description |
---|---|
static BufferedImage |
createBitmap(int width,
int height)
Create bitmap with specified size and full colorspace.
|
static BufferedImage |
createDoubleBitmap(int width,
int height)
Create bitmap with double of specified size and full colorspace.
|
static Graphics2D |
createGraphics(BufferedImage area)
Create Graphics2D for specified bitmap with rendering hints.
|
void |
drawToGraphics(Graphics2D gc,
int locationX,
int locationY,
int width,
int height) |
void |
drawToGraphics(Graphics2D gc,
int centerX,
int centerY,
int width,
int height,
double angleRadians) |
BufferedImage |
getAsBitmapForSize(int width,
int height)
Get scaled image.
|
BufferedImage |
getAsBitmapForSize(int width,
int height,
double angleRadians)
Draw rotated image on double canvas size.
|
abstract boolean |
isBitmap() |
public abstract boolean isBitmap()
public BufferedImage getAsBitmapForSize(int width, int height)
public BufferedImage getAsBitmapForSize(int width, int height, double angleRadians)
public void drawToGraphics(Graphics2D gc, int locationX, int locationY, int width, int height)
public void drawToGraphics(Graphics2D gc, int centerX, int centerY, int width, int height, double angleRadians)
public static BufferedImage createBitmap(int width, int height)
public static BufferedImage createDoubleBitmap(int width, int height)
public static Graphics2D createGraphics(BufferedImage area)