|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wirefusion.player.WfImage
public class WfImage
A WfImage is the object representing a WireFusion Image. It resembles the class java.awt.Image. A common usage for these images is to draw them on WfGraphics objects (WfGraphica.drawWfImage) in the method Wob.paint(WfGraphics g).
| Field Summary | |
|---|---|
static int |
TYPE_INT_ARGB
Represents an image with 8-bit RGBA color components packed into integer pixels. |
static int |
TYPE_INT_RGB
Represents an image with 8-bit RGB color components packed into integer pixels. |
| Constructor Summary | |
|---|---|
WfImage(int[] pixels,
int width,
int height,
Core core,
int imageType)
Constructs a new WfImage with the specified pixels. |
|
WfImage(int width,
int height,
Core core,
int imageType)
Constructs a new WfImage. |
|
| Method Summary | |
|---|---|
int |
getHeight()
Returns the image height. |
int |
getImageType()
Returns the image type. |
int |
getMemoryUsage()
Returns the number of bytes used by the pixel buffer. |
int[] |
getPixels()
Returns the pixel storage of this image. |
int |
getWidth()
Returns the image width. |
void |
setAlphaFromBlueMask(WfImage blueMaskImg)
Copies the blue component in each pixel of blueMaskImg to the alpha component in this image. |
void |
setAlphaFromBlueMask(WfImage blueMaskImg,
java.awt.Rectangle destRect)
Copies the blue component in each pixel of blueMaskImg to the alpha component in this image. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_INT_ARGB
public static final int TYPE_INT_RGB
| Constructor Detail |
|---|
public WfImage(int[] pixels,
int width,
int height,
Core core,
int imageType)
pixels - WfImage will use this pixel array as pixel data storagewidth - width of the created imageheight - height of the created imagecore - a reference to the Core objectimageType - the type of the pixels in the pixel array
public WfImage(int width,
int height,
Core core,
int imageType)
width - width of the created imageheight - height of the created imagecore - a reference to the core objectimageType - type of the created image| Method Detail |
|---|
public void setAlphaFromBlueMask(WfImage blueMaskImg,
java.awt.Rectangle destRect)
blueMaskImg - a blue mask imagepublic void setAlphaFromBlueMask(WfImage blueMaskImg)
blueMaskImg - a blue mask imagepublic int getImageType()
public int[] getPixels()
public int getWidth()
public int getHeight()
public int getMemoryUsage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||