[JAVA2D] Area.isRectangular() behaves differently on Area's that are equal. A bug?

2008-01-12 Thread java2d
Hi, Under certain conditions I find the following: [code] Area a, b; (a.equals(b) b.equals(a)) != (a.isRectangular b.isRectangular()) [/code] Is this a bug? Or am I missing something? The following code demonstrates the problem: [code] import java.awt.Polygon; import java.awt.Rectangle;

Re: [JAVA2D] Fading effect.

2008-01-12 Thread java2d
When you have access to the image's pixel data (which you can through a BufferedImage) you could alter the pixel values like this to fade between two: for(int i=0; iwidth; i++) { for(int j=0; jheight; j++) { int sc = sourceBuffer[i + j * width];

[JAVA2D] Merging sysmem vram

2008-01-12 Thread java2d
Hi, I have a situation where I want to do a hybrid of vram image blits sysmem image blits. The software image blits are just pixel arrays that get drawn into a big array representing the screen (framebuffer). I use this for images I'd like to do certain operations on only doable in software.

Re: [JAVA2D] Merging sysmem vram

2008-01-12 Thread Dmitri Trembovetski
Hi, I don't quite understand the question. Why couldn't you just render all your images (the sysmem ones, which I assume are BufferedImages) and the vram-based ones (VolatileImages or cached BufferedImages?) to your back-buffer (which resides in vram)? Whatever order you draw them