public class ImageUtilities extends Object
Modifier and Type | Method and Description |
---|---|
static BufferedImage |
createBufferedImage(Image image,
ImageObserver observer,
Color bkg) |
static BufferedImage |
createBufferedImage(RenderedImage image,
ImageObserver observer,
Color bkg) |
static RenderedImage |
createRenderedImage(Image image,
ImageObserver observer,
Color bkg) |
static RenderedImage |
createRenderedImage(RenderedImage image,
Color bkg) |
static byte[] |
getBytes(Image image,
Color bkg,
String code,
int pad,
ImageObserver observer) |
static byte[] |
getBytes(RenderedImage image,
Color bkg,
String code,
int pad)
Returns the bytes of an image.
|
public static RenderedImage createRenderedImage(Image image, ImageObserver observer, Color bkg)
public static BufferedImage createBufferedImage(RenderedImage image, ImageObserver observer, Color bkg)
public static BufferedImage createBufferedImage(Image image, ImageObserver observer, Color bkg)
public static RenderedImage createRenderedImage(RenderedImage image, Color bkg)
public static byte[] getBytes(Image image, Color bkg, String code, int pad, ImageObserver observer)
public static byte[] getBytes(RenderedImage image, Color bkg, String code, int pad)
image
- to be converted to bytesbkg
- the color to be used for alpha-multiplicationcode
- ARGB, A, or BGR, ... you may also use *ARGB to pre-multiply with alphapad
- number of bytes to pad the scanline with (1=byte, 2=short, 4=int, ...)Copyright © 2014. All rights reserved.