Top "Graphics2d" questions

Graphics2D is the part of the Java 2D API related to two-dimensional graphics, text, and imaging capabilities.

Understand BufferStrategy

I'm kind of new to java. I want to make a game. After a lot of research, I can't understand …

java graphics2d
Using a matrix to rotate rectangles individually

Having a bit of a drawing complication you would call it. My math is a bit rusty when it comes …

c# winforms math gdi+ graphics2d
How to create a Graphics2D instance?

What's the easiest way in Java SE 7 to obtain an instance just to plot a few points for debugging? Desktop …

java awt graphics2d
how to save panel as image in swing?

Hi i want to convert panel which contains components like label and buttons to image file. I have done the …

java image swing panel graphics2d
Java graphics repaint problem

Having trouble with a simple paint pad in java. Issues with getting my clear button to repaint. The array is …

java swing user-interface repaint graphics2d
How do I set the size of a printed page in java?

I have written a program that uses the Java print API to print pages from a printer. I believe I …

java swing printing graphics2d page-size
Drawing Filled Rectangle over a BufferedImage

So I am attempting to create an application that can black-out sections of a survey that contains sensitive information. However …

java bufferedimage graphics2d
Difference between Graphics and Graphics2D?

What is difference between Graphics and Graphics2D? Whether Graphics2D is extend of Graphics? public void paintComponent(Graphics g) { …

java swing graphics graphics2d
How to "paint" on JLabels on a JPanel?

I have a set of JLabels, each containing a letter (via seText()), opaque and background set to white, on a …

java swing jlabel graphics2d paintcomponent
Java .drawImage : How do I "unDraw" or delete a image?

I need a certain image to be redrawn at different locations constantly as the program runs. So I set up …

java image swing graphics2d paintcomponent