14 writes to a
PresentationCore (14)
System\Windows\Media\Color.cs (14)
41
c1.scRgbColor.
a
= 1.0f;
85
c1.scRgbColor.
a
= a;
124
c1.scRgbColor.
a
= (float)c1.sRgbColor.a / 255.0f;
145
c1.scRgbColor.
a
= a;
173
c1.scRgbColor.
a
= (float)a / 255.0f;
362
scRgbColor.
a
= (scRgbColor.a < 0) ? 0 : (scRgbColor.a > 1.0f) ? 1.0f : scRgbColor.a;
472
c1.scRgbColor.
a
= color1.scRgbColor.a + color2.scRgbColor.a;
475
c1.scRgbColor.
a
= 0.0f;
480
c1.scRgbColor.
a
= 1.0f;
591
c1.scRgbColor.
a
= color1.scRgbColor.a - color2.scRgbColor.a;
594
c1.scRgbColor.
a
= 0.0f;
599
c1.scRgbColor.
a
= 1.0f;
808
scRgbColor.
a
= (float)value / 255.0f;
898
scRgbColor.
a
= value;
29 references to a
PresentationCore (29)
System\Windows\Media\Color.cs (29)
282
separator, scRgbColor.
a
, scRgbColor.r, scRgbColor.g, scRgbColor.b);
299
sb.AppendFormat(provider,"{1:" + format + "}{0}",separator,scRgbColor.
a
);
349
return result && FloatUtil.AreClose(scRgbColor.
a
, color.scRgbColor.
a
);
362
scRgbColor.a = (scRgbColor.
a
< 0) ? 0 : (scRgbColor.
a
> 1.0f) ? 1.0f : scRgbColor.
a
;
363
sRgbColor.a = (byte)(scRgbColor.
a
* 255f);
403
color1.scRgbColor.
a
+ color2.scRgbColor.
a
,
472
c1.scRgbColor.a = color1.scRgbColor.
a
+ color2.scRgbColor.
a
;
473
if (c1.scRgbColor.
a
< 0.0f)
478
else if (c1.scRgbColor.
a
> 1.0f)
485
c1.sRgbColor.a = (byte)((c1.scRgbColor.
a
* 255.0f) + 0.5f);
517
color1.scRgbColor.
a
- color2.scRgbColor.
a
,
591
c1.scRgbColor.a = color1.scRgbColor.
a
- color2.scRgbColor.
a
;
592
if (c1.scRgbColor.
a
< 0.0f)
597
else if (c1.scRgbColor.
a
> 1.0f)
604
c1.sRgbColor.a = (byte)((c1.scRgbColor.
a
* 255.0f) + 0.5f);
632
Color c1 = FromScRgb(color.scRgbColor.
a
* coefficient, color.scRgbColor.r * coefficient, color.scRgbColor.g * coefficient, color.scRgbColor.b * coefficient);
722
if (color1.scRgbColor.
a
!= color2.scRgbColor.
a
)
758
if (color1.scRgbColor.
a
!= color2.scRgbColor.
a
)
894
return scRgbColor.
a
;
1143
return
a
.GetHashCode() ^ r.GetHashCode() ^ g.GetHashCode() ^ b.GetHashCode();