Dear All,

I have some simple code that draws a semi-transparent rectangle over 
some existing content, approximately like this:

     image.surface.SetColor(r,g,b,alpha);
     image.surface.SetDrawingFlags(DSDRAW_BLEND);
     image.surface.FillRectangle(x,y,w,h);

This works as expected in RGB32 mode, where the screen has an alpha channel.

However, it doesn't work in RGB15 mode where the screen doesn't have an 
alpha channel.

I feel that there should be some way to get this effect in RGB15 mode; 
after all, the screen's alpha channel isn't actually being used at any 
stage in the process.  But presumably it fails because the pixel format 
of the colour set by SetColor is the same as the pixel format of the 
surface, so my requested transparency is lost.

Can anyone suggest an alternative approach?

Many thanks for any ideas,

Phil.





_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to