[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [E-devel] Imlib2 alpha threshold in mask generation



On Sun, 03 Sep 2006 12:42:22 +0200 Kim Woelders <kim@woelders.dk> babbled:

> Hello,
> 
> When using imlib2 to render mask bitmaps, the pixel alpha value is used
> to determine whether or not to set the corresponding mask bit.
> As things are now the mask bit is set if the alpha value is >= 128,
> i.e. 50% opacity. This is bad when rendering pixmaps/masks for ARGB windows.
> 
> Attached patch adds imlib_context_get/set_mask_alpha_threshold(), which
> allows getting/setting the alpha threshold above which a mask bit is set.
> Default behavior is unchanged (default alpha threshold is 128).
> 
> If there are no objections I will commit this.

no objections. makes perfect sense - doesn't break api - just extends.
commit! :)

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    raster@rasterman.com
裸好多
Tokyo, Japan (東京 日本)