com.hlcl.rql.util.as
Class ImageMapImage

java.lang.Object
  extended by com.hlcl.rql.util.as.ImageMapImage

public class ImageMapImage
extends java.lang.Object

Author:
Frank Leja This class represents an image used for a HTML image map.\n You could painting a circle and a rectangle on it.\n Polygone has no visible representation. Based on the V1.4 ImageIO class.

Constructor Summary
ImageMapImage(java.awt.image.BufferedImage image)
          constructor from a in memory image
 
Method Summary
 java.awt.image.BufferedImage getImage()
          Returns the modified in memory image.
 void paintCircle(int centerX, int centerY, int radius, int color_r, int color_g, int color_b)
          Paints a circle to the image (only in memory)
 void paintRectangle(int centerX, int centerY, int radius, int color_r, int color_g, int color_b)
          Paints a rectangle to the image (only in memory)
 void saveAsPngTo(java.lang.String path)
          Save the image with the actual manipulations as PNG file to the given path.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageMapImage

public ImageMapImage(java.awt.image.BufferedImage image)
              throws RQLException
constructor from a in memory image

Throws:
RQLException
Method Detail

paintCircle

public void paintCircle(int centerX,
                        int centerY,
                        int radius,
                        int color_r,
                        int color_g,
                        int color_b)
Paints a circle to the image (only in memory)


paintRectangle

public void paintRectangle(int centerX,
                           int centerY,
                           int radius,
                           int color_r,
                           int color_g,
                           int color_b)
Paints a rectangle to the image (only in memory)


saveAsPngTo

public void saveAsPngTo(java.lang.String path)
                 throws RQLException
Save the image with the actual manipulations as PNG file to the given path.

Throws:
RQLException

getImage

public java.awt.image.BufferedImage getImage()
Returns the modified in memory image.