79 references to sRgbColor
PresentationCore (79)
System\Windows\Media\Color.cs (79)
44c1.sRgbColor.a = 255; 45c1.sRgbColor.r = 0; 46c1.sRgbColor.g = 0; 47c1.sRgbColor.b = 0; 94c1.sRgbColor.a = (byte)((a * 255.0f) + 0.5f); 95c1.sRgbColor.r = ScRgbTosRgb(c1.scRgbColor.r); 96c1.sRgbColor.g = ScRgbTosRgb(c1.scRgbColor.g); 97c1.sRgbColor.b = ScRgbTosRgb(c1.scRgbColor.b); 119c1.sRgbColor.a = (byte)((argb & 0xff000000) >> 24); 120c1.sRgbColor.r = (byte)((argb & 0x00ff0000) >> 16); 121c1.sRgbColor.g = (byte)((argb & 0x0000ff00) >> 8); 122c1.sRgbColor.b = (byte)(argb & 0x000000ff); 123c1.scRgbColor.a = (float)c1.sRgbColor.a / 255.0f; 124c1.scRgbColor.r = sRgbToScRgb(c1.sRgbColor.r); // note that context is undefined and thus unloaded 125c1.scRgbColor.g = sRgbToScRgb(c1.sRgbColor.g); 126c1.scRgbColor.b = sRgbToScRgb(c1.sRgbColor.b); 154c1.sRgbColor.a = (byte)((a * 255.0f) + 0.5f); 155c1.sRgbColor.r = ScRgbTosRgb(c1.scRgbColor.r); 156c1.sRgbColor.g = ScRgbTosRgb(c1.scRgbColor.g); 157c1.sRgbColor.b = ScRgbTosRgb(c1.scRgbColor.b); 177c1.sRgbColor.a = a; 178c1.sRgbColor.r = ScRgbTosRgb(c1.scRgbColor.r); 179c1.sRgbColor.g = ScRgbTosRgb(c1.scRgbColor.g); 180c1.sRgbColor.b = ScRgbTosRgb(c1.scRgbColor.b); 273return string.Create(provider, stackalloc char[128], $"#{this.sRgbColor.a:X2}{this.sRgbColor.r:X2}{this.sRgbColor.g:X2}{this.sRgbColor.b:X2}"); 362sRgbColor.a = (byte)(scRgbColor.a * 255f); 363sRgbColor.r = ScRgbTosRgb(scRgbColor.r); 364sRgbColor.g = ScRgbTosRgb(scRgbColor.g); 365sRgbColor.b = ScRgbTosRgb(scRgbColor.b); 429c1.sRgbColor.r = 0; 433c1.sRgbColor.r = 255; 437c1.sRgbColor.r = (byte)((sRGBValue[0] * 255.0f) + 0.5f); 442c1.sRgbColor.g = 0; 446c1.sRgbColor.g = 255; 450c1.sRgbColor.g = (byte)((sRGBValue[1] * 255.0f) + 0.5f); 455c1.sRgbColor.b = 0; 459c1.sRgbColor.b = 255; 463c1.sRgbColor.b = (byte)((sRGBValue[2] * 255.0f) + 0.5f); 466c1.scRgbColor.r = sRgbToScRgb(c1.sRgbColor.r); 467c1.scRgbColor.g = sRgbToScRgb(c1.sRgbColor.g); 468c1.scRgbColor.b = sRgbToScRgb(c1.sRgbColor.b); 473c1.sRgbColor.a = 0; 478c1.sRgbColor.a = 255; 482c1.sRgbColor.a = (byte)((c1.scRgbColor.a * 255.0f) + 0.5f); 546c1.sRgbColor.r = 0; 550c1.sRgbColor.r = 255; 554c1.sRgbColor.r = (byte)((sRGBValue[0] * 255.0f) + 0.5f); 559c1.sRgbColor.g = 0; 563c1.sRgbColor.g = 255; 567c1.sRgbColor.g = (byte)((sRGBValue[1] * 255.0f) + 0.5f); 572c1.sRgbColor.b = 0; 576c1.sRgbColor.b = 255; 580c1.sRgbColor.b = (byte)((sRGBValue[2] * 255.0f) + 0.5f); 583c1.scRgbColor.r = sRgbToScRgb(c1.sRgbColor.r); 584c1.scRgbColor.g = sRgbToScRgb(c1.sRgbColor.g); 585c1.scRgbColor.b = sRgbToScRgb(c1.sRgbColor.b); 590c1.sRgbColor.a = 0; 595c1.sRgbColor.a = 255; 599c1.sRgbColor.a = (byte)((c1.scRgbColor.a * 255.0f) + 0.5f); 796return sRgbColor.a; 801sRgbColor.a = value; 814return sRgbColor.r; 821sRgbColor.r = value; 838return sRgbColor.g; 845sRgbColor.g = value; 862return sRgbColor.b; 869sRgbColor.b = value; 893sRgbColor.a = 0; 897sRgbColor.a = (byte)255; 901sRgbColor.a = (byte)(value * 255f); 923sRgbColor.r = ScRgbTosRgb(value); 948sRgbColor.g = ScRgbTosRgb(value); 973sRgbColor.b = ScRgbTosRgb(value); 1099Span<float> sRGBValue = [this.sRgbColor.r / 255.0f, this.sRgbColor.g / 255.0f, this.sRgbColor.b / 255.0f];