java-2d
Java 2D Shading / Filling
I have created a \"blob\" from Bezier curves (screenshot below) and would now like to shade it in such a way that it appears pseudo-3D, with darker shading on all \"left\" edges and lighter on all \"r[详细]
2022-12-17 18:26 分类:问答Java 2D Graphics: can't overlay images
Im trying to get to grips wth java 2d graphics Ive basically got a JPanel with a backgrounfd image in it like so:[详细]
2022-12-17 11:06 分类:问答Detecting self crossing in closed Bezier curves
I\'ve 开发者_StackOverflowcreated a \"blob\" shape by patching cubic Bezier curves together (screenshot below).I\'d like to be able to detect the situation where a curve has crossed over either itself[详细]
2022-12-17 09:06 分类:问答Problem in generating the border of a rectangle in Java?
I am using java.awt.geom.Rectangle2D.Double class to generate a rectangle. I want to generate a rectangle which is filled with a color (say green) and have a border (outline).[详细]
2022-12-16 06:37 分类:问答Why does this code throw a java.lang.NullPointerException?
I have found a source code and i added it to my frame just for testing which it uses Java2D. But it thows an exception. I don\'t understand why.[详细]
2022-12-15 14:21 分类:问答Fastest way to compare pixel values between two BufferedImages?
I have a BufferedImage of type TYPE_INT_BGR.I need to do a pixel-by-pixel comparison to another BufferedImage to compute the \"distance\" between the two images.I have something that works, but is slo[详细]
2022-12-14 21:25 分类:问答Is it possible in Java2D to move the coordinate system?
I need a 2D coordinate system to which renders a user space coordinate system to swing components on the screen. Now that is exactly what Java2D does. But what I need further is to move the relative p[详细]
2022-12-14 18:37 分类:问答How to draw circle on JPanel? Java 2D
I have a JPanel for which I set some image as the background. I need to draw a bunch of circles on top of the image. Now the circles will be positioned based on some coordinate x,y, and the size will[详细]
2022-12-13 06:20 分类:问答Java help. How to draw images
Hi I\'m starting to work on this project where I need to have a picture (map of the US) and then I need to circles of different sizes on the map at different locations. Something like this: http://www[详细]
2022-12-12 14:57 分类:问答Scala 2D Animation library [closed]
开发者_Go百科As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely soli[详细]
2022-12-09 03:42 分类:问答
加载中,请稍侯......