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