Heya, * SINGODIWIRJO Hermantino <[EMAIL PROTECTED]> [20040329 20:15]: > Here is a simple spot : > > I've got a surface on which I've drawn a gray filled rectangle. > > If I do a Getsurface on it and then render a transparent PNG on it, the transparent > part of the PNG erases the gray color.
no - the PNG simply replaces the rectangle :) > So if the PNG is perfectly rectangular there is no problem, but if it > isn't how can I do to keep my color under the transparent PNG ? What you want to see 'behind' a surface with alpha channel has to be on a surface which is logically 'behind' that surface .. please have a look at http://www.directfb.org/documentation/DirectFB_overview_V0.2.pdf, section 2.4 .. With greetings, Count -- Andreas Kotes - ICQ: 3741366 - The views expressed herein are (only) mine! OpenPGP key 0x8F94C228 - DirectFB support crew - http://www.directfb.org/ Theory is theory, practice is practice. And theory should be used to analyze practice, but should never EVER be the overriding concern. -- Linus Torvalds -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-dev" as subject.
