79 references to sRgbColor
PresentationCore (79)
System\Windows\Media\Color.cs (79)
44
c1.
sRgbColor
.a = 255;
45
c1.
sRgbColor
.r = 0;
46
c1.
sRgbColor
.g = 0;
47
c1.
sRgbColor
.b = 0;
94
c1.
sRgbColor
.a = (byte)((a * 255.0f) + 0.5f);
95
c1.
sRgbColor
.r = ScRgbTosRgb(c1.scRgbColor.r);
96
c1.
sRgbColor
.g = ScRgbTosRgb(c1.scRgbColor.g);
97
c1.
sRgbColor
.b = ScRgbTosRgb(c1.scRgbColor.b);
119
c1.
sRgbColor
.a = (byte)((argb & 0xff000000) >> 24);
120
c1.
sRgbColor
.r = (byte)((argb & 0x00ff0000) >> 16);
121
c1.
sRgbColor
.g = (byte)((argb & 0x0000ff00) >> 8);
122
c1.
sRgbColor
.b = (byte)(argb & 0x000000ff);
123
c1.scRgbColor.a = (float)c1.
sRgbColor
.a / 255.0f;
124
c1.scRgbColor.r = sRgbToScRgb(c1.
sRgbColor
.r); // note that context is undefined and thus unloaded
125
c1.scRgbColor.g = sRgbToScRgb(c1.
sRgbColor
.g);
126
c1.scRgbColor.b = sRgbToScRgb(c1.
sRgbColor
.b);
154
c1.
sRgbColor
.a = (byte)((a * 255.0f) + 0.5f);
155
c1.
sRgbColor
.r = ScRgbTosRgb(c1.scRgbColor.r);
156
c1.
sRgbColor
.g = ScRgbTosRgb(c1.scRgbColor.g);
157
c1.
sRgbColor
.b = ScRgbTosRgb(c1.scRgbColor.b);
177
c1.
sRgbColor
.a = a;
178
c1.
sRgbColor
.r = ScRgbTosRgb(c1.scRgbColor.r);
179
c1.
sRgbColor
.g = ScRgbTosRgb(c1.scRgbColor.g);
180
c1.
sRgbColor
.b = ScRgbTosRgb(c1.scRgbColor.b);
273
return string.Create(provider, stackalloc char[128], $"#{this.
sRgbColor
.a:X2}{this.
sRgbColor
.r:X2}{this.
sRgbColor
.g:X2}{this.
sRgbColor
.b:X2}");
362
sRgbColor
.a = (byte)(scRgbColor.a * 255f);
363
sRgbColor
.r = ScRgbTosRgb(scRgbColor.r);
364
sRgbColor
.g = ScRgbTosRgb(scRgbColor.g);
365
sRgbColor
.b = ScRgbTosRgb(scRgbColor.b);
429
c1.
sRgbColor
.r = 0;
433
c1.
sRgbColor
.r = 255;
437
c1.
sRgbColor
.r = (byte)((sRGBValue[0] * 255.0f) + 0.5f);
442
c1.
sRgbColor
.g = 0;
446
c1.
sRgbColor
.g = 255;
450
c1.
sRgbColor
.g = (byte)((sRGBValue[1] * 255.0f) + 0.5f);
455
c1.
sRgbColor
.b = 0;
459
c1.
sRgbColor
.b = 255;
463
c1.
sRgbColor
.b = (byte)((sRGBValue[2] * 255.0f) + 0.5f);
466
c1.scRgbColor.r = sRgbToScRgb(c1.
sRgbColor
.r);
467
c1.scRgbColor.g = sRgbToScRgb(c1.
sRgbColor
.g);
468
c1.scRgbColor.b = sRgbToScRgb(c1.
sRgbColor
.b);
473
c1.
sRgbColor
.a = 0;
478
c1.
sRgbColor
.a = 255;
482
c1.
sRgbColor
.a = (byte)((c1.scRgbColor.a * 255.0f) + 0.5f);
546
c1.
sRgbColor
.r = 0;
550
c1.
sRgbColor
.r = 255;
554
c1.
sRgbColor
.r = (byte)((sRGBValue[0] * 255.0f) + 0.5f);
559
c1.
sRgbColor
.g = 0;
563
c1.
sRgbColor
.g = 255;
567
c1.
sRgbColor
.g = (byte)((sRGBValue[1] * 255.0f) + 0.5f);
572
c1.
sRgbColor
.b = 0;
576
c1.
sRgbColor
.b = 255;
580
c1.
sRgbColor
.b = (byte)((sRGBValue[2] * 255.0f) + 0.5f);
583
c1.scRgbColor.r = sRgbToScRgb(c1.
sRgbColor
.r);
584
c1.scRgbColor.g = sRgbToScRgb(c1.
sRgbColor
.g);
585
c1.scRgbColor.b = sRgbToScRgb(c1.
sRgbColor
.b);
590
c1.
sRgbColor
.a = 0;
595
c1.
sRgbColor
.a = 255;
599
c1.
sRgbColor
.a = (byte)((c1.scRgbColor.a * 255.0f) + 0.5f);
796
return
sRgbColor
.a;
801
sRgbColor
.a = value;
814
return
sRgbColor
.r;
821
sRgbColor
.r = value;
838
return
sRgbColor
.g;
845
sRgbColor
.g = value;
862
return
sRgbColor
.b;
869
sRgbColor
.b = value;
893
sRgbColor
.a = 0;
897
sRgbColor
.a = (byte)255;
901
sRgbColor
.a = (byte)(value * 255f);
923
sRgbColor
.r = ScRgbTosRgb(value);
948
sRgbColor
.g = ScRgbTosRgb(value);
973
sRgbColor
.b = ScRgbTosRgb(value);
1099
Span<float> sRGBValue = [this.
sRgbColor
.r / 255.0f, this.
sRgbColor
.g / 255.0f, this.
sRgbColor
.b / 255.0f];