Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java: create graphics without awt?

Is there any library out there to create graphics without using AWT?
What I need is simple drawing functions (like to draw a line) and text drawing functions to create graphics in memory for a Google app engine application. App engine does not support AWT.

Thanks!

like image 246
Damian Avatar asked Jan 30 '10 19:01

Damian


People also ask

Can you make Graphics in Java?

There are several ways to create graphics in Java; the simplest way is to use java. awt. Canvas and java.

What is awt Graphics class in Java?

The Graphics class is the abstract super class for all graphics contexts which allow an application to draw onto components that can be realized on various devices, or onto off-screen images as well. A Graphics object encapsulates all state information required for the basic rendering operations that Java supports.


2 Answers

Not unless you want to implement your own image class (say, a bitmap) and rendering algorithms for lines, shapes, images.

If you have experience with computer graphics and rasterization, this may not be very hard, but otherwise it will be more than you want to bite off.

like image 135
BobMcGee Avatar answered Sep 25 '22 20:09

BobMcGee


You might also try the appengine-awt project, though it's a bit experimental.

like image 35
Ken Bloom Avatar answered Sep 22 '22 20:09

Ken Bloom