Hi Niels,

I am a beginner to DFB. Could you let me how to set the alpha value of a 
specified pixel on a surface? For example, can I set the alpha to 50% 
transparent of all the pixel in the top half of a image surface? 

I tried SetSourceMask to get a semi-transparent image by using an alpha png 
file on a normal jpg image. But it did not work. My previous post described my 
problem. I read the DirectFB demo df_dok. But still cannot figure it out.

Thank you very much for any help!

-Jack 



--- On Thu, 11/12/09, Niels Roest <[email protected]> wrote:

From: Niels Roest <[email protected]>
Subject: Re: [directfb-dev] Applying different alpha values for different 
regions in the same window
To: "Rajesh k" <[email protected]>
Cc: [email protected]
Date: Thursday, November 12, 2009, 7:13 AM

You cannot.

Either make multiple windows,
or use a per-pixel-alpha-value.

Rajesh k wrote:
> Hi All,
>
> How can we apply different alpha values for different regions in the
> same window?
>
>
> Thanks for the help in advance.
>
>
> ~Rajesh.k
> _______________________________________________
> directfb-dev mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
>
>   


-- 

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

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev



      
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to