Why is there a leading “#FF” in hexadecimal color values?

后端 未结 3 1491
执念已碎
执念已碎 2021-01-12 21:18

I\'m using Expression Blend 3 and am writing some of the XAML by hand, specifically the color values of controls.

I have a list of RGB colors already converted to hex

3条回答
  •  旧巷少年郎
    2021-01-12 21:43

    That may be the alpha component of the color, which represents the opacity (00 -> transparent, FF -> opaque).

    MSDN seems to agree with this: Color

    16-bit hexadecimal, alpha -- #AARRGGBB

提交回复
热议问题