On 06 Jun 2003 17:41:24 +0200, Olivier Chapuis wrote: > > On Thu, Jun 05, 2003 at 03:39:45PM +0000, Mikhael Goikhman wrote: > > We don't seem to have the png or colorset support in FvwmBanner. > > There is png "support" in FvwmBanner. There is just a bug ... fixed > soon (I hope).
Thanks, it is fixed. > However, the support is limited: no alpha blending! if a point has > an alpha of <= 130 then the point is removed and if the alpha > 130 > the point is fully displayed ... > > Now, we can add alpha blending but on what? X has no translucent > support ... So, we can either (if the image has some alpha): > > 1 - blend vs the Root window (need ParentalRelativity Style) > 2 - or over a colorset background > 3 - or over a colorset background without the shape from the image. > > 1 and 2 may look ugly under certains situations. For example, > with 1 and FvwmBanner over an other window than the root window. > So, 3 can be a default (with colorset 0). This leads to new options: > > *FvwmBanner: Colorset cs > Specifies a colorset for the bg of FvwmBanner (default 0). > This is only useful if the image has a transparent part > and the Shaped option is used or if the image has an alpha channel. > > *FvwmBanner: Shaped bool > Shape or not the FvwmBanner window with the transparent part of the image. > Default is false if the image has an alpha channel, true otherwise. > > With these two options we can do 1, 2 and 3. I agree with your analyze. I just commited 2 png banners in fvwm-themes for your testing, one with and one without alpha channel (maybe it is even too much alpha-ish). The one without alpha was created by applying on the black background, converting to transparent xpm, manual editing and converting back to png. Currently the banner without alpha channel looks definitely better, because the flattening threshold of 130 is bad for this specific png. Regards, Mikhael. -- Visit the official FVWM web page at <URL:http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm-workers" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
