On Wednesday 24 August 2016 23:01:40 Krzysztof wrote:
>
[...]
> But that doesn't matter now, I'm happy :) . I just need to use
> colormask more often and problem solved. Sorry for so long issue.
>
The problem is not really fixed, see below.

> BTW: I'm now on my old laptop where both bmo_graymask and
> bmo_colormask properties have same correct behavior. But I'm playing
> now with PNG icons. See attached screenshots. My tests:
> 1. If timagelist has default options (no graymask and no colormask)
> then when add icon, bmo_graymask is automatically added to the options
> and result is as on screen1
> 2. If timagelist has bmo_graymask or bmo_colormask then when add icon,
> options are untouched as I set them (gray or color). Result is as on
> screen1
> 3. When try to switch between bmo_graymask and bmo_colormask (or
> remove both) while there is icon already added in timagelist, then
> result is screen2 and there is no way back to screen1
>
> Is it normal? If yes then it is worth remember for me. Didn't know
> that changing this timagelist properties I modify original resource
> icon
>
Default mask of TMaskedBitmap is a 1 bit bitmap. bmo_graymask uses a 8 bit 
pixmap, bmo_colormask a 3*8 bit pixmap with separate mask values for red, 
green and blue colourchannels.
Changing this options converts an existing mask.

1 bit -> bmo_graymask or bmo_colormask are lossless, 0 -> ColorBackground, 
1 -> ColorForeground.

bmo_graymask -> bmo_colormask is lossless too, n -> rgb, every colourchannel 
gets the same value.

bmo_colormask -> bmo_graymask is lossless if all colourchannels have the same 
value. rgb -> (r+g+b)/3.

bmo_graymask or_bmocolormask -> 1 bit sets all pixels of the ColorBackground 
to 0, all other pixels to 1.

It seems that your new laptop does not support 8-bit masks, maybe a bug in 
XRender implementation.

Martin

------------------------------------------------------------------------------
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to