On Wednesday 18 May 2005 16:03, Alexandre Prokoudine wrote:
> Excuse me my ignorance, but what is the problem about"true
> transparency" in current RG's icons?

XPM allows you to specify that a pixel has a colour, or that it is 
transparent, but not both (i.e. it can't be partially transparent).  
PNG doesn't have this limitation.

Imagine you want to draw an anti-aliased black shape on a coloured 
background.  Anti-aliasing works by blending the pixels around the 
edges into the background to various degrees to make them appear to be 
"partly in" the shape.  To do it right, therefore, you need to know the 
colour of the background -- if you draw a light grey pixel on a dark 
red background, it doesn't blend in at all.  XPM doesn't allow you to 
do this, because coloured pixels cannot also be transparent.  So you 
have to make your icons to fit a particular colour background (in our 
case a light grey).

This is one reason why Rosegarden's icons look crappy if you change your 
KDE theme to one with a dark background -- the anti-aliasing 
practically glows, because the icons were made for a light background.  
Of course there's more to it than that -- you can't just plonk a dark 
icon on a dark background either -- but that's the technological part 
of the problem at least.


Chris


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to