Quoting Hallvar Helleseth ([EMAIL PROTECTED]): > Hi! > > I've been trying to brightenup a surface containing an image. Is that > possible? Sort of what I'm looking for is blitting a image to the > surface and then drawing a semi-transparent white rectangle over it > (blending the two together). It looks to me like that is difficult > unless I use two windows, one with the image and another on top with the > rectangle. > > Am I right or wrong?
You can draw transparent rectangles, lines etc. by setting the drawing flag DSDRAW_BLEND. The alpha factor used as the source alpha value is the alpha value of the current color. The source alpha value is used for the default source and destination blend functions. -- 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-users" as subject.
