79 references to sRgbColor
PresentationCore (79)
System\Windows\Media\Color.cs (79)
43
c1.
sRgbColor
.a = 255;
44
c1.
sRgbColor
.r = 0;
45
c1.
sRgbColor
.g = 0;
46
c1.
sRgbColor
.b = 0;
93
c1.
sRgbColor
.a = (byte)((a * 255.0f) + 0.5f);
94
c1.
sRgbColor
.r = ScRgbTosRgb(c1.scRgbColor.r);
95
c1.
sRgbColor
.g = ScRgbTosRgb(c1.scRgbColor.g);
96
c1.
sRgbColor
.b = ScRgbTosRgb(c1.scRgbColor.b);
118
c1.
sRgbColor
.a = (byte)((argb & 0xff000000) >> 24);
119
c1.
sRgbColor
.r = (byte)((argb & 0x00ff0000) >> 16);
120
c1.
sRgbColor
.g = (byte)((argb & 0x0000ff00) >> 8);
121
c1.
sRgbColor
.b = (byte)(argb & 0x000000ff);
122
c1.scRgbColor.a = (float)c1.
sRgbColor
.a / 255.0f;
123
c1.scRgbColor.r = sRgbToScRgb(c1.
sRgbColor
.r); // note that context is undefined and thus unloaded
124
c1.scRgbColor.g = sRgbToScRgb(c1.
sRgbColor
.g);
125
c1.scRgbColor.b = sRgbToScRgb(c1.
sRgbColor
.b);
153
c1.
sRgbColor
.a = (byte)((a * 255.0f) + 0.5f);
154
c1.
sRgbColor
.r = ScRgbTosRgb(c1.scRgbColor.r);
155
c1.
sRgbColor
.g = ScRgbTosRgb(c1.scRgbColor.g);
156
c1.
sRgbColor
.b = ScRgbTosRgb(c1.scRgbColor.b);
176
c1.
sRgbColor
.a = a;
177
c1.
sRgbColor
.r = ScRgbTosRgb(c1.scRgbColor.r);
178
c1.
sRgbColor
.g = ScRgbTosRgb(c1.scRgbColor.g);
179
c1.
sRgbColor
.b = ScRgbTosRgb(c1.scRgbColor.b);
272
return string.Create(provider, stackalloc char[128], $"#{this.
sRgbColor
.a:X2}{this.
sRgbColor
.r:X2}{this.
sRgbColor
.g:X2}{this.
sRgbColor
.b:X2}");
361
sRgbColor
.a = (byte)(scRgbColor.a * 255f);
362
sRgbColor
.r = ScRgbTosRgb(scRgbColor.r);
363
sRgbColor
.g = ScRgbTosRgb(scRgbColor.g);
364
sRgbColor
.b = ScRgbTosRgb(scRgbColor.b);
428
c1.
sRgbColor
.r = 0;
432
c1.
sRgbColor
.r = 255;
436
c1.
sRgbColor
.r = (byte)((sRGBValue[0] * 255.0f) + 0.5f);
441
c1.
sRgbColor
.g = 0;
445
c1.
sRgbColor
.g = 255;
449
c1.
sRgbColor
.g = (byte)((sRGBValue[1] * 255.0f) + 0.5f);
454
c1.
sRgbColor
.b = 0;
458
c1.
sRgbColor
.b = 255;
462
c1.
sRgbColor
.b = (byte)((sRGBValue[2] * 255.0f) + 0.5f);
465
c1.scRgbColor.r = sRgbToScRgb(c1.
sRgbColor
.r);
466
c1.scRgbColor.g = sRgbToScRgb(c1.
sRgbColor
.g);
467
c1.scRgbColor.b = sRgbToScRgb(c1.
sRgbColor
.b);
472
c1.
sRgbColor
.a = 0;
477
c1.
sRgbColor
.a = 255;
481
c1.
sRgbColor
.a = (byte)((c1.scRgbColor.a * 255.0f) + 0.5f);
545
c1.
sRgbColor
.r = 0;
549
c1.
sRgbColor
.r = 255;
553
c1.
sRgbColor
.r = (byte)((sRGBValue[0] * 255.0f) + 0.5f);
558
c1.
sRgbColor
.g = 0;
562
c1.
sRgbColor
.g = 255;
566
c1.
sRgbColor
.g = (byte)((sRGBValue[1] * 255.0f) + 0.5f);
571
c1.
sRgbColor
.b = 0;
575
c1.
sRgbColor
.b = 255;
579
c1.
sRgbColor
.b = (byte)((sRGBValue[2] * 255.0f) + 0.5f);
582
c1.scRgbColor.r = sRgbToScRgb(c1.
sRgbColor
.r);
583
c1.scRgbColor.g = sRgbToScRgb(c1.
sRgbColor
.g);
584
c1.scRgbColor.b = sRgbToScRgb(c1.
sRgbColor
.b);
589
c1.
sRgbColor
.a = 0;
594
c1.
sRgbColor
.a = 255;
598
c1.
sRgbColor
.a = (byte)((c1.scRgbColor.a * 255.0f) + 0.5f);
795
return
sRgbColor
.a;
800
sRgbColor
.a = value;
813
return
sRgbColor
.r;
820
sRgbColor
.r = value;
837
return
sRgbColor
.g;
844
sRgbColor
.g = value;
861
return
sRgbColor
.b;
868
sRgbColor
.b = value;
892
sRgbColor
.a = 0;
896
sRgbColor
.a = (byte)255;
900
sRgbColor
.a = (byte)(value * 255f);
922
sRgbColor
.r = ScRgbTosRgb(value);
947
sRgbColor
.g = ScRgbTosRgb(value);
972
sRgbColor
.b = ScRgbTosRgb(value);
1098
Span<float> sRGBValue = [this.
sRgbColor
.r / 255.0f, this.
sRgbColor
.g / 255.0f, this.
sRgbColor
.b / 255.0f];