Hi,
Please tell me if this new code works for you (I did very little
testing), and... have fun !
There are a few issues with the new code, and I replied to Olivier
directly to avoid spamming the list. I guess if we come up with a
fixed version we will say so on that list.
It would be good to have this fast algorithm to be in the official
version
This matter has been mentioned once and Timothy pointed out that it
was better to keep the examples clean and simple. I proposed to
create a package com.sun.jna.awt for windowing-related stuff, but I
am unsure whether this is a good idea... Maybe it would be better to
create a separate jar jna-extras.jar with code samples that are
expected to be more complete and performant than simple examples.
I am personally troubled by this statement. When I discovered JNA, it
was through one of the several blog entries like this one:
http://rabbit-hole.blogspot.com/2007/04/alpha-mask-transparency.html
I assumed the example was a complete implementation of the feature.
Moreover, when I talked about transparency with some other developers,
they also pointed out JNA.
I believe having good examples is a way for people to experiment JNA
and consider its quality. If the alpha transparency is slow, they may
think it is because of JNA rather than because of the examples itself.
That is why I think there should be somewhere a complete optimized
version of the transparency using JNA. What do you think?
Keep up the good work! :)
Cheers,
-Christopher