79 references to sRgbColor
PresentationCore (79)
System\Windows\Media\Color.cs (79)
53
c1.
sRgbColor
.a = 255;
54
c1.
sRgbColor
.r = 0;
55
c1.
sRgbColor
.g = 0;
56
c1.
sRgbColor
.b = 0;
103
c1.
sRgbColor
.a = (byte)((a * 255.0f) + 0.5f);
104
c1.
sRgbColor
.r = ScRgbTosRgb(c1.scRgbColor.r);
105
c1.
sRgbColor
.g = ScRgbTosRgb(c1.scRgbColor.g);
106
c1.
sRgbColor
.b = ScRgbTosRgb(c1.scRgbColor.b);
128
c1.
sRgbColor
.a = (byte)((argb & 0xff000000) >> 24);
129
c1.
sRgbColor
.r = (byte)((argb & 0x00ff0000) >> 16);
130
c1.
sRgbColor
.g = (byte)((argb & 0x0000ff00) >> 8);
131
c1.
sRgbColor
.b = (byte)(argb & 0x000000ff);
132
c1.scRgbColor.a = (float)c1.
sRgbColor
.a / 255.0f;
133
c1.scRgbColor.r = sRgbToScRgb(c1.
sRgbColor
.r); // note that context is undefined and thus unloaded
134
c1.scRgbColor.g = sRgbToScRgb(c1.
sRgbColor
.g);
135
c1.scRgbColor.b = sRgbToScRgb(c1.
sRgbColor
.b);
163
c1.
sRgbColor
.a = (byte)((a * 255.0f) + 0.5f);
164
c1.
sRgbColor
.r = ScRgbTosRgb(c1.scRgbColor.r);
165
c1.
sRgbColor
.g = ScRgbTosRgb(c1.scRgbColor.g);
166
c1.
sRgbColor
.b = ScRgbTosRgb(c1.scRgbColor.b);
186
c1.
sRgbColor
.a = a;
187
c1.
sRgbColor
.r = ScRgbTosRgb(c1.scRgbColor.r);
188
c1.
sRgbColor
.g = ScRgbTosRgb(c1.scRgbColor.g);
189
c1.
sRgbColor
.b = ScRgbTosRgb(c1.scRgbColor.b);
282
return string.Create(provider, stackalloc char[128], $"#{this.
sRgbColor
.a:X2}{this.
sRgbColor
.r:X2}{this.
sRgbColor
.g:X2}{this.
sRgbColor
.b:X2}");
371
sRgbColor
.a = (byte)(scRgbColor.a * 255f);
372
sRgbColor
.r = ScRgbTosRgb(scRgbColor.r);
373
sRgbColor
.g = ScRgbTosRgb(scRgbColor.g);
374
sRgbColor
.b = ScRgbTosRgb(scRgbColor.b);
440
c1.
sRgbColor
.r = 0;
444
c1.
sRgbColor
.r = 255;
448
c1.
sRgbColor
.r = (byte)((sRGBValue[0] * 255.0f) + 0.5f);
453
c1.
sRgbColor
.g = 0;
457
c1.
sRgbColor
.g = 255;
461
c1.
sRgbColor
.g = (byte)((sRGBValue[1] * 255.0f) + 0.5f);
466
c1.
sRgbColor
.b = 0;
470
c1.
sRgbColor
.b = 255;
474
c1.
sRgbColor
.b = (byte)((sRGBValue[2] * 255.0f) + 0.5f);
477
c1.scRgbColor.r = sRgbToScRgb(c1.
sRgbColor
.r);
478
c1.scRgbColor.g = sRgbToScRgb(c1.
sRgbColor
.g);
479
c1.scRgbColor.b = sRgbToScRgb(c1.
sRgbColor
.b);
484
c1.
sRgbColor
.a = 0;
489
c1.
sRgbColor
.a = 255;
493
c1.
sRgbColor
.a = (byte)((c1.scRgbColor.a * 255.0f) + 0.5f);
559
c1.
sRgbColor
.r = 0;
563
c1.
sRgbColor
.r = 255;
567
c1.
sRgbColor
.r = (byte)((sRGBValue[0] * 255.0f) + 0.5f);
572
c1.
sRgbColor
.g = 0;
576
c1.
sRgbColor
.g = 255;
580
c1.
sRgbColor
.g = (byte)((sRGBValue[1] * 255.0f) + 0.5f);
585
c1.
sRgbColor
.b = 0;
589
c1.
sRgbColor
.b = 255;
593
c1.
sRgbColor
.b = (byte)((sRGBValue[2] * 255.0f) + 0.5f);
596
c1.scRgbColor.r = sRgbToScRgb(c1.
sRgbColor
.r);
597
c1.scRgbColor.g = sRgbToScRgb(c1.
sRgbColor
.g);
598
c1.scRgbColor.b = sRgbToScRgb(c1.
sRgbColor
.b);
603
c1.
sRgbColor
.a = 0;
608
c1.
sRgbColor
.a = 255;
612
c1.
sRgbColor
.a = (byte)((c1.scRgbColor.a * 255.0f) + 0.5f);
812
return
sRgbColor
.a;
817
sRgbColor
.a = value;
830
return
sRgbColor
.r;
837
sRgbColor
.r = value;
854
return
sRgbColor
.g;
861
sRgbColor
.g = value;
878
return
sRgbColor
.b;
885
sRgbColor
.b = value;
909
sRgbColor
.a = 0;
913
sRgbColor
.a = (byte)255;
917
sRgbColor
.a = (byte)(value * 255f);
939
sRgbColor
.r = ScRgbTosRgb(value);
964
sRgbColor
.g = ScRgbTosRgb(value);
989
sRgbColor
.b = ScRgbTosRgb(value);
1115
Span<float> sRGBValue = [this.
sRgbColor
.r / 255.0f, this.
sRgbColor
.g / 255.0f, this.
sRgbColor
.b / 255.0f];