79 references to sRgbColor
PresentationCore (79)
System\Windows\Media\Color.cs (79)
45
c1.
sRgbColor
.a = 255;
46
c1.
sRgbColor
.r = 0;
47
c1.
sRgbColor
.g = 0;
48
c1.
sRgbColor
.b = 0;
95
c1.
sRgbColor
.a = (byte)((a * 255.0f) + 0.5f);
96
c1.
sRgbColor
.r = ScRgbTosRgb(c1.scRgbColor.r);
97
c1.
sRgbColor
.g = ScRgbTosRgb(c1.scRgbColor.g);
98
c1.
sRgbColor
.b = ScRgbTosRgb(c1.scRgbColor.b);
120
c1.
sRgbColor
.a = (byte)((argb & 0xff000000) >> 24);
121
c1.
sRgbColor
.r = (byte)((argb & 0x00ff0000) >> 16);
122
c1.
sRgbColor
.g = (byte)((argb & 0x0000ff00) >> 8);
123
c1.
sRgbColor
.b = (byte)(argb & 0x000000ff);
124
c1.scRgbColor.a = (float)c1.
sRgbColor
.a / 255.0f;
125
c1.scRgbColor.r = sRgbToScRgb(c1.
sRgbColor
.r); // note that context is undefined and thus unloaded
126
c1.scRgbColor.g = sRgbToScRgb(c1.
sRgbColor
.g);
127
c1.scRgbColor.b = sRgbToScRgb(c1.
sRgbColor
.b);
155
c1.
sRgbColor
.a = (byte)((a * 255.0f) + 0.5f);
156
c1.
sRgbColor
.r = ScRgbTosRgb(c1.scRgbColor.r);
157
c1.
sRgbColor
.g = ScRgbTosRgb(c1.scRgbColor.g);
158
c1.
sRgbColor
.b = ScRgbTosRgb(c1.scRgbColor.b);
178
c1.
sRgbColor
.a = a;
179
c1.
sRgbColor
.r = ScRgbTosRgb(c1.scRgbColor.r);
180
c1.
sRgbColor
.g = ScRgbTosRgb(c1.scRgbColor.g);
181
c1.
sRgbColor
.b = ScRgbTosRgb(c1.scRgbColor.b);
274
return string.Create(provider, stackalloc char[128], $"#{this.
sRgbColor
.a:X2}{this.
sRgbColor
.r:X2}{this.
sRgbColor
.g:X2}{this.
sRgbColor
.b:X2}");
363
sRgbColor
.a = (byte)(scRgbColor.a * 255f);
364
sRgbColor
.r = ScRgbTosRgb(scRgbColor.r);
365
sRgbColor
.g = ScRgbTosRgb(scRgbColor.g);
366
sRgbColor
.b = ScRgbTosRgb(scRgbColor.b);
432
c1.
sRgbColor
.r = 0;
436
c1.
sRgbColor
.r = 255;
440
c1.
sRgbColor
.r = (byte)((sRGBValue[0] * 255.0f) + 0.5f);
445
c1.
sRgbColor
.g = 0;
449
c1.
sRgbColor
.g = 255;
453
c1.
sRgbColor
.g = (byte)((sRGBValue[1] * 255.0f) + 0.5f);
458
c1.
sRgbColor
.b = 0;
462
c1.
sRgbColor
.b = 255;
466
c1.
sRgbColor
.b = (byte)((sRGBValue[2] * 255.0f) + 0.5f);
469
c1.scRgbColor.r = sRgbToScRgb(c1.
sRgbColor
.r);
470
c1.scRgbColor.g = sRgbToScRgb(c1.
sRgbColor
.g);
471
c1.scRgbColor.b = sRgbToScRgb(c1.
sRgbColor
.b);
476
c1.
sRgbColor
.a = 0;
481
c1.
sRgbColor
.a = 255;
485
c1.
sRgbColor
.a = (byte)((c1.scRgbColor.a * 255.0f) + 0.5f);
551
c1.
sRgbColor
.r = 0;
555
c1.
sRgbColor
.r = 255;
559
c1.
sRgbColor
.r = (byte)((sRGBValue[0] * 255.0f) + 0.5f);
564
c1.
sRgbColor
.g = 0;
568
c1.
sRgbColor
.g = 255;
572
c1.
sRgbColor
.g = (byte)((sRGBValue[1] * 255.0f) + 0.5f);
577
c1.
sRgbColor
.b = 0;
581
c1.
sRgbColor
.b = 255;
585
c1.
sRgbColor
.b = (byte)((sRGBValue[2] * 255.0f) + 0.5f);
588
c1.scRgbColor.r = sRgbToScRgb(c1.
sRgbColor
.r);
589
c1.scRgbColor.g = sRgbToScRgb(c1.
sRgbColor
.g);
590
c1.scRgbColor.b = sRgbToScRgb(c1.
sRgbColor
.b);
595
c1.
sRgbColor
.a = 0;
600
c1.
sRgbColor
.a = 255;
604
c1.
sRgbColor
.a = (byte)((c1.scRgbColor.a * 255.0f) + 0.5f);
804
return
sRgbColor
.a;
809
sRgbColor
.a = value;
822
return
sRgbColor
.r;
829
sRgbColor
.r = value;
846
return
sRgbColor
.g;
853
sRgbColor
.g = value;
870
return
sRgbColor
.b;
877
sRgbColor
.b = value;
901
sRgbColor
.a = 0;
905
sRgbColor
.a = (byte)255;
909
sRgbColor
.a = (byte)(value * 255f);
931
sRgbColor
.r = ScRgbTosRgb(value);
956
sRgbColor
.g = ScRgbTosRgb(value);
981
sRgbColor
.b = ScRgbTosRgb(value);
1107
Span<float> sRGBValue = [this.
sRgbColor
.r / 255.0f, this.
sRgbColor
.g / 255.0f, this.
sRgbColor
.b / 255.0f];