java-2d
JScrollPane shows graphics glitches on row header. How to avoid this?
I\'m trying to use a JScrollPane with a column header and a row header. On the rowheader, there is some text. When I开发者_JAVA技巧 scroll down the pane, some graphics artifacts appear on the rowhead[详细]
2023-03-27 08:41 分类:问答How to render a 2d image in Java
I have a quick question about Java. I\'m sorry if this question is really basic, but I\'m a beginner Java programmer :D[详细]
2023-03-26 19:33 分类:问答How do I create and distribute diagonal stripes on a rectangle?
I would like to be able to create bar charts with JFreeChart that looks similar to the following picture.[详细]
2023-03-25 08:26 分类:问答Constructing an IndexColourModel
I was wondering about constructing an IndexColourModel. I don\'t understand the \'bits\' parameter argument. Is this what is used to index into a colour map, i.e. the number of least-significant-bits[详细]
2023-03-25 03:14 分类:问答How to create a curve between 2 points in 2D and get back Points that makes that curve every d distance?
I\'m not good in math. I have 2 points, A(x1, y1) and B(x2, y2) in 2D. I need to create a virtual path from point A to B curved at R(radius), and then return an array of points which are describing[详细]
2023-03-19 09:20 分类:问答Creating videos with Java2D
I\'m in the process of writing a Java and FFmpeg based video editor, and I\'m trying to find a library that would allow me to create a video from frames rendered via Java2D.[详细]
2023-03-18 21:35 分类:问答How Ellipse to Ellipse intersection?
I\'m using JAVA. Ellipse2D s1=new Ellipse2D.Float(0,0,100,100); System.out.println(s1.intersects(99, 30, 100, 100));[详细]
2023-03-16 11:10 分类:问答Java2D: BufferedImage not accelerated on Ubuntu
We are currently developing a game in Java using the Java2D API and are experiencing some strange performance issues when running it in an Ubuntu environment.[详细]
2023-03-11 21:05 分类:问答Implement a simple game in Java (Graphics-related)
I am new to game programming in Java, especially on the graphics front, hence I would like to seek some advice on how to implement the following game graphically in Java.[详细]
2023-03-11 19:20 分类:问答Turn single pixel on/off or change color in Java
How should I开发者_如何转开发 turn a each pixel on or off and change its color :-/if you use BufferedImage, there\'s a method called setRGB which should do what you want.If you\'re doing normal painti[详细]
2023-03-11 17:50 分类:问答
加载中,请稍侯......