27
votes
2answers
1k views

How can I use BitmapRegionDecoder code in android 2.2.2 (Froyo)?

I was reading an answer to a different question on SO, in which @RomainGuy commented that one could (please correct me if I'm paraphrasing incorrectly) back-port code from later versions of android to ...
22
votes
1answer
701 views

.NET equivalent or alternative to Java's GlyphVector?

I'm in the process of porting a Java program to .NET using IKVM. Unfortunately IKVM's Graphics2D implementation throws a NotImplementedException in drawGlyphVector, i.e. it needs to be "fleshed out" ...
19
votes
10answers
5k views

Java AWT/SWT/Swing: How to plan a GUI?

I've already realized some applications with a small graphical user interface. Nothing complex, but I've encountered several problems that components aren't displayed or just not behaving as expected. ...
17
votes
9answers
13k views

Java 2D Drawing Optimal Performance

I'm in the process of writing a Java 2D game. I'm using the built-in Java 2D drawing libraries, drawing on a Graphics2D I acquire from a BufferStrategy from a Canvas in a JFrame (which is sometimes ...
17
votes
2answers
7k views

Best 3D Java Engine

Looking for an easy to use 3D Java Engine API (i.e. not wrapper) that has a good community and good development. Extra features (i.e. audio, input, etc.) are not necessary but nice. List of the most ...
14
votes
5answers
9k views

Java 2D game graphics

Next semester we have a module in making Java applications in a team. The requirement of the module is to make a game. Over the Christmas holidays I've been doing a little practice, but I can't figure ...
14
votes
5answers
2k views

Create an image from a non-visible AWT Component?

I'm trying to create an image (screen-shot) of a non-visible AWT component. I can't use the Robot classes' screen capture functionality because the component is not visible on the screen. Trying to ...
13
votes
1answer
6k views

Drawing Nine Patch onto Canvas (Android)

I'm trying to draw a nine patch onto a Canvas object on the Android. What seems strange is that although I generated my nine patch using the draw9patch tool, the constructor for NinePatch requires an ...
12
votes
6answers
26k views

How to convert a 3D point into 2D perspective projection?

I am currently working with using Bezier curves and surfaces to draw the famous Utah teapot. Using Bezier patches of 16 control points, I have been able to draw the teapot and display it using a ...
12
votes
4answers
20k views

Set BufferedImage alpha mask in Java

I have two BufferedImages I loaded in from pngs. The first contains an image, the second an alpha mask for the image. I want to create a combined image from the two, by applying the alpha mask. My ...
12
votes
2answers
8k views

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 text on the image and apply to it effects like the ones in Adobe Photoshop. Right now to ...
11
votes
7answers
1k views

Introduction to Java Graphics Libraries

I just got into information-visualization and scientific-visualization and have been using Piccolo and a little with JFreeChart. I am trying to find a few new libraries that I can start using. I am ...
10
votes
5answers
4k views

How to program a full-screen mode in Java?

I'd like my application to have a full-screen mode. What is the easiest way to do this, do I need a third party library for this or is there something in the JDK that already offers this?
9
votes
4answers
5k views

How do you draw a string centered vertically in Java?

I know it's a simple concept but I'm struggling with the font metrics. Centering horizontally isn't too hard but vertically seems a bit difficult. I've tried using the FontMetrics getAscent, ...
9
votes
1answer
4k views

How to add text to an image in java?

I need to add some texts to an existing table image (png). Which means that I need to "write" on the image and I need the option to select the text location. How can I do it? Thank you very much.

1 2 3 4 5 105
15 30 50 per page