Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Alpha in Color
Alpha in Color [message #24807] |
Sat, 30 January 2010 23:08 |
andrei_natanael
Messages: 262 Registered: January 2009
|
Experienced Member |
|
|
Is there any reason why Color doesn't have alpha component? It have but it can't be set i.e. Color(255, 123, 223, 128).
Also if converting from RGBA to Color i think it loose color value if alpha is 0 (Color.cpp:76);
Color::Color(RGBA rgba)
{
if(rgba.a == 0)
color = 0xffffffff;
IMO it should preserve colors from rgba even if alpha is 0; I was doing conversion from QPixmap (from Qt) to Image (Upp) in some test for my graduation thesis and i liked the idea to be able to fill QPixmap with a "transparent" color.
|
|
|
Goto Forum:
Current Time: Thu Mar 28 22:54:19 CET 2024
Total time taken to generate the page: 0.01267 seconds
|