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