  | |  | Compositing 32bit (+alpha) images | Compositing 32bit (+alpha) images 2003-12-07 - By Brennan
Back On Sat, 6 Dec 2003 11:20:26 -0600, "Chuck Neal" <chuck@(protected)> wrote:
> If you need to combine alphas, extract both, > copyPixels, then combine the Alphas by using a > copyPixels and #darkest ink. (You can also do some > other tricks to do combinations but this gives you the > opaque areas together.) Then reset the alpha... > > Lets say I is image 1 and i2 is image 2 > > A = i.extractALpha() > A2 = i2.extractalpha() > i.copyPixels(i2, i2.rect, i2.rect) > A.copyPixels(a2, a2.rect, a2.rect, [#ink : #darkest]) > i.setALpha(a)
Yes, this works for merging two images with alpha channels, but does not solve the issue of putting antialiased text onto a background, because you'd end up losing the text altogether. I probably should have been more clear, because there is a real difference between the two.
Colin's solution is admirable, however, and Alexx's movie is super.
Thanks.
Brennan __ ____ ____ ____ ____ ____ ____ ____ ____ ____ dirGames-L mailing list - dirGames-L@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames-l
Earn $52 per hosting referral at Lunarpages.
|
|
 |