public final class RetinaImage
extends java.lang.Object
Constructor and Description |
---|
RetinaImage() |
Modifier and Type | Method and Description |
---|---|
static java.awt.image.BufferedImage |
create(java.awt.Graphics2D g,
double width,
double height,
int type,
PaintUtil.RoundingMode rm) |
static java.awt.image.BufferedImage |
create(java.awt.Graphics2D g,
int width,
int height,
int type) |
static java.awt.image.BufferedImage |
create(java.awt.GraphicsConfiguration gc,
double width,
double height,
int type,
PaintUtil.RoundingMode rm) |
static java.awt.image.BufferedImage |
create(java.awt.GraphicsConfiguration gc,
int width,
int height,
int type) |
static java.awt.image.BufferedImage |
create(int width,
int height,
int type) |
static java.awt.image.BufferedImage |
create(ScaleContext ctx,
double width,
double height,
int type,
PaintUtil.RoundingMode rm) |
static java.awt.Image |
createFrom(java.awt.Image image)
Creates a Retina-aware wrapper over a raw image.
|
static java.awt.Image |
createFrom(java.awt.Image image,
double scale,
java.awt.image.ImageObserver observer)
Creates a Retina-aware wrapper over a raw image.
|
static java.awt.Image |
createFrom(java.awt.Image image,
int scale,
java.awt.image.ImageObserver observer)
Deprecated.
use
createFrom(Image, double, ImageObserver) instead |
public static java.awt.Image createFrom(java.awt.Image image)
image
- the raw image@Deprecated public static java.awt.Image createFrom(java.awt.Image image, int scale, java.awt.image.ImageObserver observer)
createFrom(Image, double, ImageObserver)
insteadpublic static java.awt.Image createFrom(java.awt.Image image, double scale, java.awt.image.ImageObserver observer)
image
- the raw imagescale
- the raw image scaleobserver
- the raw image observerpublic static java.awt.image.BufferedImage create(int width, int height, int type)
public static java.awt.image.BufferedImage create(java.awt.Graphics2D g, int width, int height, int type)
public static java.awt.image.BufferedImage create(java.awt.Graphics2D g, double width, double height, int type, PaintUtil.RoundingMode rm)
public static java.awt.image.BufferedImage create(java.awt.GraphicsConfiguration gc, int width, int height, int type)
public static java.awt.image.BufferedImage create(java.awt.GraphicsConfiguration gc, double width, double height, int type, PaintUtil.RoundingMode rm)
public static java.awt.image.BufferedImage create(ScaleContext ctx, double width, double height, int type, PaintUtil.RoundingMode rm)