开发者

convert #RRGGBB hex value to #AARRGGBB

开发者 https://www.devze.com 2022-12-18 23:37 出处:网络
What value would have #414141 as #AARRGGBB and what abo开发者_C百科ut #52b531? How can I convert this using PHP?

What value would have #414141 as #AARRGGBB and what abo开发者_C百科ut #52b531? How can I convert this using PHP?

Regards,

Pentium10


AA is the Alpha channel, and a straight conversion would be to set AA to FF to make it full opaque:

#414141 becomes #FF414141 

(Just to add: In some implementations it means the amount of Transparency where 00 means complete opaque and FF means fully transparent. In that case, #00414141 would be correct. But I think that is the exception)

0

精彩评论

暂无评论...
验证码 换一张
取 消