[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Three separate discussions about mouse pointers on three different lists
From:       Malte.Starostik () t-online ! de (Malte Starostik)
Date:       2001-03-08 2:21:38
[Download RAW message or body]

Am Donnerstag,  8. März 2001 03:14 schrieb dep:
> On Wednesday 07 March 2001 08:45 pm, Christian A Strømmen
>
> | Let's fix this people!  Anybody up for the job?
>
> actually, one of the coolest icon arrangements i've ever seen was in
> OS/2, where one could use the icon editor to make a mouse pointer and
> even assign the hot spot. what made it especially cool was the
> ability to have a mouse color that was the inverse of whatever it was
> over, as can be done now with kde icon effects, so that no matter
> where it was, it was always high-contrast.
>
> that having been said, let me note that i have no idea how one would
> bring any of this about, though the color change code seems already
> to exist somewhere, because we can do it with icons.
This is exactly how Windows-icons/cursors work. In fact under Windows icons 
and cursors share the same file-format, just one header field specifies what 
it is and only cursors specify a hot spot.
The file consists of an XOR and an AND bitmap, the 1-bpp AND bitmap contains 
the mask and the 1,2,4,8,16 or 24-bpp XOR bitmap the actual image. Pixels 
that have a zero bit in the mask and a zero value in the image are 
transparent. A zero in the mask and all-ones in the image make a pixel the 
inverted background. 1-bits in the mask make the pixel have the colour from 
the image regardless of the background.
-Malte
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic