org.freehep.util.images
Class ImageUtilities
java.lang.Object
org.freehep.util.images.ImageUtilities
- public class ImageUtilities
- extends Object
- Version:
- $Id: ImageUtilities.java,v 1.7 2004/12/21 00:39:47 duns Exp $
- Author:
- Mark Donszelmann
- Source Code:
- ImageUtilities.java
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createRenderedImage
public static RenderedImage createRenderedImage(Image image,
ImageObserver observer,
Color bkg)
createRenderedImage
public static RenderedImage createRenderedImage(RenderedImage image,
Color bkg)
getBytes
public static byte[] getBytes(Image image,
Color bkg,
String code,
int pad,
ImageObserver observer)
getBytes
public static byte[] getBytes(RenderedImage image,
Color bkg,
String code,
int pad)
- Returns the bytes of an image.
- Parameters:
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 © 2000-2004 FreeHEP, All Rights Reserved.