This example illustrates how to create a game using GameCanvas class.
In this example we are extending GameCanvas class to draw the circle and
rotate the circle continuously. The GameCanvas class has following
flushGraphics():- This is the void type method, it flushes to
display on the off-screen buffer.
flushGraphics(int x, int y, int width, int height):- This is the
void type method, it flushes to display of specified region on the
getGraphics():- This is used to get the graphics objects.
getKeyStates():- This is the integer type variable, it is used to
find the states of the key.
paint(Graphics g):- This is also the void type method, it is used
to paint the canvas.
Other commands, input event, etc methods inherited from Canvas class.
The Canvas class has following methods:
September 28, 2012
Thanks for the quick reply. I can get it to output a pdf in this way, yes. I just wanetd to output more than one! If I save a png during the loop then I can reloop and save different versions, but I can't seem to do this with pdfs if that makes sense? Thanks again.