Quoting Denis Oliver Kropp:
> Quoting SINGODIWIRJO Hermantino:
> > Sorry re-posting the topic but I really need to find a way to do the trick.
> > 
> > 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.
> > 
> > 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 ?
> 
> Call IDirectFBImageProvider::GetDescription() and use alpha blending or color keying
> as supposed in the description. This depends on whether you have an indexed PNG with
> transparency a la GIF.

It's called GetImageDescription(), an example is "DFB++/examples/dfbimage.cpp".

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

                            Convergence GmbH


-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-dev" as subject.

Reply via email to