This page describes methods for adding objects to Images.
Methods
void fill(int v)
fill the entire image with the given value.
fill(int x,int y,int w,int h,int v)
fill a rectangle with the given value.
x is the horizontal coordinate of upper left corner
y is the vertical coordinate of upper left corner
w is the width of the rectangle
h is the height of the rectangle
v is the new pixelvalue
draw a string in this image. It uses java.awt methods (so it calls getGr()).
s is the text to draw.
x is the horizontal position.
y is the vertical position.
halign is the horizontal alignment. If it is UPRIGHT the
text appears on the right of the position, if CENTER it appears
on both sides of x,y and if DOWNLEFT it appears left of x,y.
valign is the vertical alignment. If it is UPRIGHT the
text appears above the x,y position, if CENTER it appears
on both sides of x,y and if DOWNLEFT it appears below x,y