14 writes to a
PresentationCore (14)
System\Windows\Media\Color.cs (14)
40
c1.scRgbColor.
a
= 1.0f;
84
c1.scRgbColor.
a
= a;
123
c1.scRgbColor.
a
= (float)c1.sRgbColor.a / 255.0f;
144
c1.scRgbColor.
a
= a;
172
c1.scRgbColor.
a
= (float)a / 255.0f;
361
scRgbColor.
a
= (scRgbColor.a < 0) ? 0 : (scRgbColor.a > 1.0f) ? 1.0f : scRgbColor.a;
469
c1.scRgbColor.
a
= color1.scRgbColor.a + color2.scRgbColor.a;
472
c1.scRgbColor.
a
= 0.0f;
477
c1.scRgbColor.
a
= 1.0f;
586
c1.scRgbColor.
a
= color1.scRgbColor.a - color2.scRgbColor.a;
589
c1.scRgbColor.
a
= 0.0f;
594
c1.scRgbColor.
a
= 1.0f;
800
scRgbColor.
a
= (float)value / 255.0f;
890
scRgbColor.
a
= value;
29 references to a
PresentationCore (29)
System\Windows\Media\Color.cs (29)
281
separator, scRgbColor.
a
, scRgbColor.r, scRgbColor.g, scRgbColor.b);
298
sb.AppendFormat(provider,"{1:" + format + "}{0}",separator,scRgbColor.
a
);
348
return result && FloatUtil.AreClose(scRgbColor.
a
, color.scRgbColor.
a
);
361
scRgbColor.a = (scRgbColor.
a
< 0) ? 0 : (scRgbColor.
a
> 1.0f) ? 1.0f : scRgbColor.
a
;
362
sRgbColor.a = (byte)(scRgbColor.
a
* 255f);
402
color1.scRgbColor.
a
+ color2.scRgbColor.
a
,
469
c1.scRgbColor.a = color1.scRgbColor.
a
+ color2.scRgbColor.
a
;
470
if (c1.scRgbColor.
a
< 0.0f)
475
else if (c1.scRgbColor.
a
> 1.0f)
482
c1.sRgbColor.a = (byte)((c1.scRgbColor.
a
* 255.0f) + 0.5f);
514
color1.scRgbColor.
a
- color2.scRgbColor.
a
,
586
c1.scRgbColor.a = color1.scRgbColor.
a
- color2.scRgbColor.
a
;
587
if (c1.scRgbColor.
a
< 0.0f)
592
else if (c1.scRgbColor.
a
> 1.0f)
599
c1.sRgbColor.a = (byte)((c1.scRgbColor.
a
* 255.0f) + 0.5f);
627
Color c1 = FromScRgb(color.scRgbColor.
a
* coefficient, color.scRgbColor.r * coefficient, color.scRgbColor.g * coefficient, color.scRgbColor.b * coefficient);
714
if (color1.scRgbColor.
a
!= color2.scRgbColor.
a
)
750
if (color1.scRgbColor.
a
!= color2.scRgbColor.
a
)
886
return scRgbColor.
a
;
1135
return
a
.GetHashCode() ^ r.GetHashCode() ^ g.GetHashCode() ^ b.GetHashCode();