de.esw.eengine.renderable.primitive
Class ImagePrimitive

java.lang.Object
  extended by de.esw.eengine.renderable.primitive.ImagePrimitive
All Implemented Interfaces:
IRenderPrimitive

public class ImagePrimitive
extends java.lang.Object
implements IRenderPrimitive

Since:
1.0
Version:
$Id: ImagePrimitive.java 75 2005-06-16 20:48:07Z markusw $
Author:
markusw

Constructor Summary
ImagePrimitive(java.awt.image.BufferedImage image)
           
ImagePrimitive(java.awt.image.BufferedImage image, float alpha)
           
ImagePrimitive(java.awt.image.BufferedImage image, int sx1, int sy1)
           
ImagePrimitive(java.awt.image.BufferedImage image, int sx1, int sy1, float alpha)
           
ImagePrimitive(java.awt.image.BufferedImage image, int sx1, int sy1, int sx2, int sy2)
           
ImagePrimitive(java.awt.image.BufferedImage image, int sx1, int sy1, int sx2, int sy2, float alpha)
           
ImagePrimitive(java.awt.image.BufferedImage image, int sx1, int sy1, int sx2, int sy2, int dx1, int dy1)
           
ImagePrimitive(java.awt.image.BufferedImage image, int sx1, int sy1, int sx2, int sy2, int dx1, int dy1, float alpha)
           
ImagePrimitive(java.awt.image.BufferedImage image, int sx1, int sy1, int sx2, int sy2, int dx1, int dy1, int dx2, int dy2)
           
ImagePrimitive(java.awt.image.BufferedImage image, int sx1, int sy1, int sx2, int sy2, int dx1, int dy1, int dx2, int dy2, float alpha)
           
 
Method Summary
 void render(java.awt.Graphics2D g)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImagePrimitive

public ImagePrimitive(java.awt.image.BufferedImage image)
Parameters:
image - Image to render

ImagePrimitive

public ImagePrimitive(java.awt.image.BufferedImage image,
                      float alpha)
Parameters:
image - Image to render
alpha - Alpha blending factor to render

ImagePrimitive

public ImagePrimitive(java.awt.image.BufferedImage image,
                      int sx1,
                      int sy1)
Parameters:
image - Image to render
sx1 - Left source coordinate
sy1 - Teft source coordinate

ImagePrimitive

public ImagePrimitive(java.awt.image.BufferedImage image,
                      int sx1,
                      int sy1,
                      float alpha)
Parameters:
image - Image to render
sx1 - Left source coordinate
sy1 - Teft source coordinate
alpha - Alpha blending factor to render

ImagePrimitive

public ImagePrimitive(java.awt.image.BufferedImage image,
                      int sx1,
                      int sy1,
                      int sx2,
                      int sy2)
Parameters:
image - Image to render
sx1 - Left source coordinate
sy1 - Teft source coordinate
sx2 - Right source coordinate
sy2 - Bottom source coordinate

ImagePrimitive

public ImagePrimitive(java.awt.image.BufferedImage image,
                      int sx1,
                      int sy1,
                      int sx2,
                      int sy2,
                      float alpha)
Parameters:
image - Image to render
sx1 - Left source coordinate
sy1 - Teft source coordinate
sx2 - Right source coordinate
sy2 - Bottom source coordinate
alpha - Alpha blending factor to render

ImagePrimitive

public ImagePrimitive(java.awt.image.BufferedImage image,
                      int sx1,
                      int sy1,
                      int sx2,
                      int sy2,
                      int dx1,
                      int dy1)
Parameters:
image - Image to render
sx1 - Left source coordinate
sy1 - Teft source coordinate
sx2 - Right source coordinate
sy2 - Bottom source coordinate
dx1 - Left destination coordinate
dy1 - Top destination coordinate

ImagePrimitive

public ImagePrimitive(java.awt.image.BufferedImage image,
                      int sx1,
                      int sy1,
                      int sx2,
                      int sy2,
                      int dx1,
                      int dy1,
                      float alpha)
Parameters:
image - Image to render
sx1 - Left source coordinate
sy1 - Teft source coordinate
sx2 - Right source coordinate
sy2 - Bottom source coordinate
dx1 - Left destination coordinate
dy1 - Top destination coordinate
alpha - Alpha blending factor to render

ImagePrimitive

public ImagePrimitive(java.awt.image.BufferedImage image,
                      int sx1,
                      int sy1,
                      int sx2,
                      int sy2,
                      int dx1,
                      int dy1,
                      int dx2,
                      int dy2)
Parameters:
image - Image to render
sx1 - Left source coordinate
sy1 - Teft source coordinate
sx2 - Right source coordinate
sy2 - Bottom source coordinate
dx1 - Left destination coordinate
dy1 - Top destination coordinate
dx2 - Right destination coordinate
dy2 - Bottom destination coordinate

ImagePrimitive

public ImagePrimitive(java.awt.image.BufferedImage image,
                      int sx1,
                      int sy1,
                      int sx2,
                      int sy2,
                      int dx1,
                      int dy1,
                      int dx2,
                      int dy2,
                      float alpha)
Parameters:
image - Image to render
sx1 - Left source coordinate
sy1 - Teft source coordinate
sx2 - Right source coordinate
sy2 - Bottom source coordinate
dx1 - Left destination coordinate
dy1 - Top destination coordinate
dx2 - Right destination coordinate
dy2 - Bottom destination coordinate
alpha - Alpha blending factor to render
Method Detail

render

public void render(java.awt.Graphics2D g)
Specified by:
render in interface IRenderPrimitive
Parameters:
g - Graphics to render on
See Also:
IRenderPrimitive.render(java.awt.Graphics2D)