79 references to sRgbColor
PresentationCore (79)
Core\CSharp\System\Windows\Media\Color.cs (79)
54
c1.
sRgbColor
.a = 255;
55
c1.
sRgbColor
.r = 0;
56
c1.
sRgbColor
.g = 0;
57
c1.
sRgbColor
.b = 0;
104
c1.
sRgbColor
.a = (byte)((a * 255.0f) + 0.5f);
105
c1.
sRgbColor
.r = ScRgbTosRgb(c1.scRgbColor.r);
106
c1.
sRgbColor
.g = ScRgbTosRgb(c1.scRgbColor.g);
107
c1.
sRgbColor
.b = ScRgbTosRgb(c1.scRgbColor.b);
129
c1.
sRgbColor
.a = (byte)((argb & 0xff000000) >> 24);
130
c1.
sRgbColor
.r = (byte)((argb & 0x00ff0000) >> 16);
131
c1.
sRgbColor
.g = (byte)((argb & 0x0000ff00) >> 8);
132
c1.
sRgbColor
.b = (byte)(argb & 0x000000ff);
133
c1.scRgbColor.a = (float)c1.
sRgbColor
.a / 255.0f;
134
c1.scRgbColor.r = sRgbToScRgb(c1.
sRgbColor
.r); // note that context is undefined and thus unloaded
135
c1.scRgbColor.g = sRgbToScRgb(c1.
sRgbColor
.g);
136
c1.scRgbColor.b = sRgbToScRgb(c1.
sRgbColor
.b);
164
c1.
sRgbColor
.a = (byte)((a * 255.0f) + 0.5f);
165
c1.
sRgbColor
.r = ScRgbTosRgb(c1.scRgbColor.r);
166
c1.
sRgbColor
.g = ScRgbTosRgb(c1.scRgbColor.g);
167
c1.
sRgbColor
.b = ScRgbTosRgb(c1.scRgbColor.b);
187
c1.
sRgbColor
.a = a;
188
c1.
sRgbColor
.r = ScRgbTosRgb(c1.scRgbColor.r);
189
c1.
sRgbColor
.g = ScRgbTosRgb(c1.scRgbColor.g);
190
c1.
sRgbColor
.b = ScRgbTosRgb(c1.scRgbColor.b);
285
sb.AppendFormat(provider, "#{0:X2}", this.
sRgbColor
.a);
286
sb.AppendFormat(provider, "{0:X2}", this.
sRgbColor
.r);
287
sb.AppendFormat(provider, "{0:X2}", this.
sRgbColor
.g);
288
sb.AppendFormat(provider, "{0:X2}", this.
sRgbColor
.b);
379
sRgbColor
.a = (byte)(scRgbColor.a * 255f);
380
sRgbColor
.r = ScRgbTosRgb(scRgbColor.r);
381
sRgbColor
.g = ScRgbTosRgb(scRgbColor.g);
382
sRgbColor
.b = ScRgbTosRgb(scRgbColor.b);
448
c1.
sRgbColor
.r = 0;
452
c1.
sRgbColor
.r = 255;
456
c1.
sRgbColor
.r = (byte)((sRGBValue[0] * 255.0f) + 0.5f);
461
c1.
sRgbColor
.g = 0;
465
c1.
sRgbColor
.g = 255;
469
c1.
sRgbColor
.g = (byte)((sRGBValue[1] * 255.0f) + 0.5f);
474
c1.
sRgbColor
.b = 0;
478
c1.
sRgbColor
.b = 255;
482
c1.
sRgbColor
.b = (byte)((sRGBValue[2] * 255.0f) + 0.5f);
485
c1.scRgbColor.r = sRgbToScRgb(c1.
sRgbColor
.r);
486
c1.scRgbColor.g = sRgbToScRgb(c1.
sRgbColor
.g);
487
c1.scRgbColor.b = sRgbToScRgb(c1.
sRgbColor
.b);
492
c1.
sRgbColor
.a = 0;
497
c1.
sRgbColor
.a = 255;
501
c1.
sRgbColor
.a = (byte)((c1.scRgbColor.a * 255.0f) + 0.5f);
567
c1.
sRgbColor
.r = 0;
571
c1.
sRgbColor
.r = 255;
575
c1.
sRgbColor
.r = (byte)((sRGBValue[0] * 255.0f) + 0.5f);
580
c1.
sRgbColor
.g = 0;
584
c1.
sRgbColor
.g = 255;
588
c1.
sRgbColor
.g = (byte)((sRGBValue[1] * 255.0f) + 0.5f);
593
c1.
sRgbColor
.b = 0;
597
c1.
sRgbColor
.b = 255;
601
c1.
sRgbColor
.b = (byte)((sRGBValue[2] * 255.0f) + 0.5f);
604
c1.scRgbColor.r = sRgbToScRgb(c1.
sRgbColor
.r);
605
c1.scRgbColor.g = sRgbToScRgb(c1.
sRgbColor
.g);
606
c1.scRgbColor.b = sRgbToScRgb(c1.
sRgbColor
.b);
611
c1.
sRgbColor
.a = 0;
616
c1.
sRgbColor
.a = 255;
620
c1.
sRgbColor
.a = (byte)((c1.scRgbColor.a * 255.0f) + 0.5f);
820
return
sRgbColor
.a;
825
sRgbColor
.a = value;
838
return
sRgbColor
.r;
845
sRgbColor
.r = value;
862
return
sRgbColor
.g;
869
sRgbColor
.g = value;
886
return
sRgbColor
.b;
893
sRgbColor
.b = value;
917
sRgbColor
.a = 0;
921
sRgbColor
.a = (byte)255;
925
sRgbColor
.a = (byte)(value * 255f);
947
sRgbColor
.r = ScRgbTosRgb(value);
972
sRgbColor
.g = ScRgbTosRgb(value);
997
sRgbColor
.b = ScRgbTosRgb(value);
1125
sRGBValue[0] = this.
sRgbColor
.r / 255.0f;
1126
sRGBValue[1] = this.
sRgbColor
.g / 255.0f;
1127
sRGBValue[2] = this.
sRgbColor
.b / 255.0f;