wpf - Can't produce a solid color by specifying directly R, G, B and A -
i have converter determines colors based on status items. going tweak colors, opacity etc, can't colors match starters.
question: why isn't outcome of below 2 lines of code equivalent? going use green example. when run the first produces normal solid green, second light green definite opacity/see through:
return new solidcolorbrush(colors.green); return new solidcolorbrush{color = new color{a = 100, b = 0, g = 128, r = 0}};
as test, when create rectangle in blend , fill green:
<rectangle fill="green"
i see r 0, g 128, b 0 ,and 100%
a
not percentage, byte value r
, g
, b
. have specify 255
100% opacity.
Comments
Post a Comment