View Full Version : paint method and graphics g

12-07-2006, 04:02 AM
hi, im am starting to use the graphics g and the paint method in java to just kinds of mess around with. does anyone know a program were i can draw what i want my figuer to look like, and then it woudl give me a code liek (g.drawRect (12,34,54,54,123) g.fillOval (12,34,54,54,123) ect. all help would be great. thanks!:eek: :eek:


12-07-2006, 10:36 AM
If you draw your image in a vector graphics program, then view the source of the resulting SVG file, it should be simple enough to translate to Graphics2D calls.

Alternatively, you could do the easy thing and just display an external image. :)

Neural Network
02-08-2007, 09:18 PM
I dont know if such a program exist, but I could see how it could be handy. Working out vectors can be tedious

Maybe its a handy project for someone fairly new, but wants to get their hands dirty... that gives me an idea.

02-08-2007, 10:50 PM
Aye, that would be handy. I'd use it.