14 writes to a
PresentationCore (14)
System\Windows\Media\Color.cs (14)
49
c1.scRgbColor.
a
= 1.0f;
93
c1.scRgbColor.
a
= a;
132
c1.scRgbColor.
a
= (float)c1.sRgbColor.a / 255.0f;
153
c1.scRgbColor.
a
= a;
181
c1.scRgbColor.
a
= (float)a / 255.0f;
370
scRgbColor.
a
= (scRgbColor.a < 0) ? 0 : (scRgbColor.a > 1.0f) ? 1.0f : scRgbColor.a;
480
c1.scRgbColor.
a
= color1.scRgbColor.a + color2.scRgbColor.a;
483
c1.scRgbColor.
a
= 0.0f;
488
c1.scRgbColor.
a
= 1.0f;
599
c1.scRgbColor.
a
= color1.scRgbColor.a - color2.scRgbColor.a;
602
c1.scRgbColor.
a
= 0.0f;
607
c1.scRgbColor.
a
= 1.0f;
816
scRgbColor.
a
= (float)value / 255.0f;
906
scRgbColor.
a
= value;
29 references to a
PresentationCore (29)
System\Windows\Media\Color.cs (29)
290
separator, scRgbColor.
a
, scRgbColor.r, scRgbColor.g, scRgbColor.b);
307
sb.AppendFormat(provider,"{1:" + format + "}{0}",separator,scRgbColor.
a
);
357
return result && FloatUtil.AreClose(scRgbColor.
a
, color.scRgbColor.
a
);
370
scRgbColor.a = (scRgbColor.
a
< 0) ? 0 : (scRgbColor.
a
> 1.0f) ? 1.0f : scRgbColor.
a
;
371
sRgbColor.a = (byte)(scRgbColor.
a
* 255f);
411
color1.scRgbColor.
a
+ color2.scRgbColor.
a
,
480
c1.scRgbColor.a = color1.scRgbColor.
a
+ color2.scRgbColor.
a
;
481
if (c1.scRgbColor.
a
< 0.0f)
486
else if (c1.scRgbColor.
a
> 1.0f)
493
c1.sRgbColor.a = (byte)((c1.scRgbColor.
a
* 255.0f) + 0.5f);
525
color1.scRgbColor.
a
- color2.scRgbColor.
a
,
599
c1.scRgbColor.a = color1.scRgbColor.
a
- color2.scRgbColor.
a
;
600
if (c1.scRgbColor.
a
< 0.0f)
605
else if (c1.scRgbColor.
a
> 1.0f)
612
c1.sRgbColor.a = (byte)((c1.scRgbColor.
a
* 255.0f) + 0.5f);
640
Color c1 = FromScRgb(color.scRgbColor.
a
* coefficient, color.scRgbColor.r * coefficient, color.scRgbColor.g * coefficient, color.scRgbColor.b * coefficient);
730
if (color1.scRgbColor.
a
!= color2.scRgbColor.
a
)
766
if (color1.scRgbColor.
a
!= color2.scRgbColor.
a
)
902
return scRgbColor.
a
;
1151
return
a
.GetHashCode() ^ r.GetHashCode() ^ g.GetHashCode() ^ b.GetHashCode();