Re: Anti-aliasing in image clipping to non-rectangular sub-images
Daniele Futtorovic wrote:
On 15/08/2008 02:03, Knute Johnson allegedly wrote:
Daniele Futtorovic wrote:
On 14/08/2008 17:20, Knute Johnson allegedly wrote:
Well there's a truth that it took me a while to learn and that is
that you can't draw alpha into an image.
Must be jolly interesting if it's something that took you a while to
learn. So... what does that sentence mean?
If you have an image, you basically can't draw on it (with the usual
Graphics(2D) methods) and reduce the alpha value of the pixels in the
image. Say you have a pixel that is white with an alpha of 255.
There is no way to draw on the image to change that pixel's alpha to
another value.
I thought that was what the AlphaComposites were for...
Unless of course you use an AlphaComposite with a value of Clear.
That will change it to a black pixel with an alpha of 0.
... ah.
To get this right, are you positively sure there is no way? Not even
playing with XOR paint?
I can't swear that XOR paint won't but I couldn't make it work. Of
course that is not definitive :-).
--
Knute Johnson
email s/nospam/knute2008/
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access