OffScreen image creation problem

Hi everyone,

Actually I am programming some calsses that allow me to modelize different SpotLights (Cercle(Color, CenterCoordinates, Radius) ) and their sorrounded halo (Cercle(Color, CenterCoordinates, Radius)).

I am planning to creat each spotLight and its halo off-screen and save it as .jpg file in a data base or a directory.

My question is: how can I create these images without using any JComponet (Frame, panel or etc). I just want to create them in VM and save them as an image file so I can use them later on!

Thank you for helping and if u need more information to solve this problem I would be happy to cooperate.

Pishi

[670 byte] By [pishi13a] at [2007-10-3 2:51:52]
# 1
Create a BufferedImage.The BufferedImage has a Graphics2D object, and you can draw the circles on the graphics object.Then you can convert the buffered image to a JPG file.
jvaudrya at 2007-7-14 20:40:46 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thanx for your help it was really helpful.
pishi13a at 2007-7-14 20:40:46 > top of Java-index,Desktop,Core GUI APIs...