Mailing List
Home
Forum Home
MUD Dev - Discussion of MUD system design, development, and implementation
Mac Game - Mac game development
Rivers of MUD - a Diku and Merc based multiuser dungeon
SMAUG
Subjects
Getting UDP through NAT/firewalls/whatever for a game
Getting UDP through NAT/firewalls/whatever for a game
QuickTime errors
Python script as stand alone MUD server
Various sound problems
Fragment Shaders & GL TEXTURE RECTANGLE EXT
Timers and global variables
Re: Language and platform for Text MUD server
Apparent acquisition of Yantis (mysupersales) by IDE
HID keyboard
Getting UDP through NAT/firewalls/whatever for a game
Microsoft Sparkle
Director MX
Congratulations Horizons
Yet more problems fullscreen mode
Apple Dev Kitchen Them 's tasty vittles, Maw!
NSOpenGLContext, Pbuffers, and drawables
More DCR "theft " naughtiness
dynamic sprite creation and imaging lingo
Re: Find stuff in Flash array?
Effects of skill imbalances?
QuickTime errors
Rom 2 4/Quickmud Enhancement/Bug fix
Working with XML files/CFURL
smooth scrolling/subpixel tweening
RE: (Ron help me?) Flash text
Flash Racing
MudDev FAQ 2
Browser based games
Installing GLUT
Special character in Flash XML
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Compositing 32bit (+alpha) images

Compositing 32bit (+alpha) images

2003-12-07       - By Brennan

 Back
Reply:     1     2  

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.