U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Alpha in Color
Alpha in Color [message #24807] Sat, 30 January 2010 23:08 Go to previous message
andrei_natanael is currently offline  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.
 
Read Message
Read Message
Previous Topic: Painter.DrawImage bug
Next Topic: Crash when loading images into 64bit exes
Goto Forum:
  


Current Time: Tue Sep 29 13:26:54 GMT+2 2026

Total time taken to generate the page: 0.07123 seconds