Top "Java-2d" questions

Java 2D is an API for drawing two-dimensional graphics using the Java programming language.

Drawing a nice circle in Java

I'm using Java Graphics and I keep getting "ugly" circles. Here's what my Java program makes And here's the same …

java graphics awt geometry java-2d
Java2D Performance Issues

I'm having performance oddities with Java2D. I know of the sun.java2d.opengl VM parameter to enable 3D …

java java-2d
Drawing a bold line with drawLine() when extending Canvas

Given the following : public class NavigationCanvas extends Canvas implements MouseListener,MouseMotionListener,KeyListener { public void paint(Graphics g) { // some code // more // ... …

java awt java-2d java-canvas
Java2D Graphics anti-aliased

I am new to Java and trying to use Java2D Graphics to create a Image. But the output is …

java graphics java-2d antialiasing
How to draw a Round rectangle in java with normal rectangle outline

For my java application i need a Round rectangle with an outline that looks like a normal rectangle, like this …

java swing awt java-2d paint
Is there a 100% Java alternative to ImageIO for reading JPEG files?

We are using Java2D to resize photos uploaded to our website, but we run into an issue (a seemingly …

java jpeg java-2d javax.imageio resize-image
Occasional InterruptedException when quitting a Swing application

I recently updated my computer to a more powerful one, with a quad-core hyperthreading processor (i7), thus plenty of real …

java concurrency multithreading java-2d interrupted-exception
How can I create a drop shadow, inner glow and outer glow in Java Swing?

I am generating some images using the Graphics2D interface, and occasionally I'd like to be able to draw some …

java swing graphics effects java-2d
Java2D: Is it always safe to cast Graphics into Graphics2D

Assuming we always use a Sun JVM (say, 1.5+), is it always safe to cast a Graphics reference to Graphics2D? …

java java-2d
How to get a good quality thumbnail

I am trying to create a high quality thumbnail of this image, with Java and Scalr 3.2 This is the relevant …

java java-2d image-resizing scalr