arrow
arrow

Reputation: 174

Drawing API for java?

I want to be able to draw and erase on an image in java (NOT javascript). Are there any APIs for that? Bonus points if i can also draw vectors, but it's not necessary. I want to use it in my program, so I'm not looking for a stand alone program. Thank you!

Upvotes: 1

Views: 1234

Answers (3)

user1028408
user1028408

Reputation: 1230

diagrams and images can be drawn using an API that can produce SVG images. I can remember two API's that are capable of this. One of them is Batik and the other is SVG Salamander.

Upvotes: 1

Jay Askren
Jay Askren

Reputation: 10454

Another option would be to use Processing

Upvotes: 1

SuperTron
SuperTron

Reputation: 4253

Why not use the graphics classes built into java? There is a simple tutorial for this here. You really just need to get a graphics context and then you can draw whatever you like on the image.

Upvotes: 1

Related Questions