color: int to string (hex)
#8

Quote:
Originally Posted by Vince
View Post
Why, and what for? As Y_Less said you can't display alpha transparency anywhere. Colors should otherwise be stored as numbers.
I understood wrong sorry

problem is if a use AARRGGBB format (alpha transparency is first, for colored objects).

new color = 0xAABB9911;
format(string,sizeof(string),"%06x",color>>>8 );

result is:"AABB99"
but color is:
"BB9911"
Reply


Messages In This Thread
color: int to string (hex) - by ATomas - 12.06.2013, 13:37
Re: color: int to string (hex) - by OrMisicL - 12.06.2013, 13:59
Re: color: int to string (hex) - by feartonyb - 12.06.2013, 13:59
Re: color: int to string (hex) - by ATomas - 13.06.2013, 07:55
Re: color: int to string (hex) - by ATomas - 13.06.2013, 07:58
Re: color: int to string (hex) - by ATomas - 13.06.2013, 09:49
Re: color: int to string (hex) - by Vince - 13.06.2013, 09:51
Re: color: int to string (hex) - by ATomas - 13.06.2013, 09:52

Forum Jump:


Users browsing this thread: 1 Guest(s)