11 messages in net.java.dev.jna.usersRe: [jna-users] Re: shaped windows us...
FromSent OnAttachments
Timothy WallMay 24, 2007 7:12 am 
Christopher DeckersMay 29, 2007 2:21 am 
Christopher DeckersMay 29, 2007 3:29 am 
Wayne MeissnerMay 29, 2007 3:53 am 
Christopher DeckersMay 29, 2007 7:10 am 
Wayne MeissnerMay 29, 2007 7:43 am 
Timothy WallMay 29, 2007 11:04 am 
Olivier ChafikMay 29, 2007 6:19 pm 
Christopher DeckersMay 29, 2007 11:56 pm 
Timothy WallMay 30, 2007 5:19 am 
Christopher DeckersMay 30, 2007 6:10 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Re: shaped windows using images - performanceActions...
From:Christopher Deckers (chrr@gmail.com)
Date:May 29, 2007 7:10:56 am
List:net.java.dev.jna.users

One thing you might want to do is to get the backing array for each of the images. I've found reading/writing pixels directly to be a lot faster than the getRGB()/setRGB() calls.

e.g. int[] pixels = ((DataBufferInt) newImage.getRaster().getDataBuffer()).getData();

I have to admit I am a bit lost in all those Image-related APIs. Image handling (rasters, color models, etc.) is an area where I need to learn a bit more. Any pointers to resources to learn about all these internal details?

In the call you describe, I guess I can modify the ARGB values directly in the array of pixels, but how do I apply my new array?

Now to come back to my original problem, it seems the modify version I am using does not support the transparent Windows. Is there an online CVS I can browse to pick the sources I need (WindowUtils mainly) or do I have to check out the project? I would prefer the first option for a start.

Cheers, -Christopher