127 references to scRgbColor
PresentationCore (127)
System\Windows\Media\Color.cs (127)
40c1.scRgbColor.a = 1.0f; 41c1.scRgbColor.r = 0.0f; 42c1.scRgbColor.g = 0.0f; 43c1.scRgbColor.b = 0.0f; 84c1.scRgbColor.a = a; 95c1.sRgbColor.r = ScRgbTosRgb(c1.scRgbColor.r); 96c1.sRgbColor.g = ScRgbTosRgb(c1.scRgbColor.g); 97c1.sRgbColor.b = ScRgbTosRgb(c1.scRgbColor.b); 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); 141c1.scRgbColor.r = r; 142c1.scRgbColor.g = g; 143c1.scRgbColor.b = b; 144c1.scRgbColor.a = a; 155c1.sRgbColor.r = ScRgbTosRgb(c1.scRgbColor.r); 156c1.sRgbColor.g = ScRgbTosRgb(c1.scRgbColor.g); 157c1.sRgbColor.b = ScRgbTosRgb(c1.scRgbColor.b); 172c1.scRgbColor.a = (float)a / 255.0f; 173c1.scRgbColor.r = sRgbToScRgb(r); // note that context is undefined and thus unloaded 174c1.scRgbColor.g = sRgbToScRgb(g); 175c1.scRgbColor.b = sRgbToScRgb(b); 178c1.sRgbColor.r = ScRgbTosRgb(c1.scRgbColor.r); 179c1.sRgbColor.g = ScRgbTosRgb(c1.scRgbColor.g); 180c1.sRgbColor.b = ScRgbTosRgb(c1.scRgbColor.b); 209return this.scRgbColor.GetHashCode(); //^this.context.GetHashCode(); 281separator, scRgbColor.a, scRgbColor.r, scRgbColor.g, scRgbColor.b); 298sb.AppendFormat(provider,"{1:" + format + "}{0}",separator,scRgbColor.a); 338result = result && FloatUtil.AreClose(scRgbColor.r, color.scRgbColor.r); 339result = result && FloatUtil.AreClose(scRgbColor.g, color.scRgbColor.g); 340result = result && FloatUtil.AreClose(scRgbColor.b, color.scRgbColor.b); 348return result && FloatUtil.AreClose(scRgbColor.a, color.scRgbColor.a); 358scRgbColor.r = (scRgbColor.r < 0) ? 0 : (scRgbColor.r > 1.0f) ? 1.0f : scRgbColor.r; 359scRgbColor.g = (scRgbColor.g < 0) ? 0 : (scRgbColor.g > 1.0f) ? 1.0f : scRgbColor.g; 360scRgbColor.b = (scRgbColor.b < 0) ? 0 : (scRgbColor.b > 1.0f) ? 1.0f : scRgbColor.b; 361scRgbColor.a = (scRgbColor.a < 0) ? 0 : (scRgbColor.a > 1.0f) ? 1.0f : scRgbColor.a; 362sRgbColor.a = (byte)(scRgbColor.a * 255f); 363sRgbColor.r = ScRgbTosRgb(scRgbColor.r); 364sRgbColor.g = ScRgbTosRgb(scRgbColor.g); 365sRgbColor.b = ScRgbTosRgb(scRgbColor.b); 402color1.scRgbColor.a + color2.scRgbColor.a, 403color1.scRgbColor.r + color2.scRgbColor.r, 404color1.scRgbColor.g + color2.scRgbColor.g, 405color1.scRgbColor.b + color2.scRgbColor.b); 466c1.scRgbColor.r = sRgbToScRgb(c1.sRgbColor.r); 467c1.scRgbColor.g = sRgbToScRgb(c1.sRgbColor.g); 468c1.scRgbColor.b = sRgbToScRgb(c1.sRgbColor.b); 469c1.scRgbColor.a = color1.scRgbColor.a + color2.scRgbColor.a; 470if (c1.scRgbColor.a < 0.0f) 472c1.scRgbColor.a = 0.0f; 475else if (c1.scRgbColor.a > 1.0f) 477c1.scRgbColor.a = 1.0f; 482c1.sRgbColor.a = (byte)((c1.scRgbColor.a * 255.0f) + 0.5f); 514color1.scRgbColor.a - color2.scRgbColor.a, 515color1.scRgbColor.r - color2.scRgbColor.r, 516color1.scRgbColor.g - color2.scRgbColor.g, 517color1.scRgbColor.b - color2.scRgbColor.b 583c1.scRgbColor.r = sRgbToScRgb(c1.sRgbColor.r); 584c1.scRgbColor.g = sRgbToScRgb(c1.sRgbColor.g); 585c1.scRgbColor.b = sRgbToScRgb(c1.sRgbColor.b); 586c1.scRgbColor.a = color1.scRgbColor.a - color2.scRgbColor.a; 587if (c1.scRgbColor.a < 0.0f) 589c1.scRgbColor.a = 0.0f; 592else if (c1.scRgbColor.a > 1.0f) 594c1.scRgbColor.a = 1.0f; 599c1.sRgbColor.a = (byte)((c1.scRgbColor.a * 255.0f) + 0.5f); 627Color c1 = FromScRgb(color.scRgbColor.a * coefficient, color.scRgbColor.r * coefficient, color.scRgbColor.g * coefficient, color.scRgbColor.b * coefficient); 699if (color1.scRgbColor.r != color2.scRgbColor.r) 704if (color1.scRgbColor.g != color2.scRgbColor.g) 709if (color1.scRgbColor.b != color2.scRgbColor.b) 714if (color1.scRgbColor.a != color2.scRgbColor.a) 750if (color1.scRgbColor.a != color2.scRgbColor.a) 800scRgbColor.a = (float)value / 255.0f; 820scRgbColor.r = sRgbToScRgb(value); 844scRgbColor.g = sRgbToScRgb(value); 868scRgbColor.b = sRgbToScRgb(value); 886return scRgbColor.a; 890scRgbColor.a = value; 915return scRgbColor.r; 922scRgbColor.r = value; 940return scRgbColor.g; 947scRgbColor.g = value; 965return scRgbColor.b; 972scRgbColor.b = value; 1088this.scRgbColor.r = sRgbToScRgb((byte)((255.0f * scRGBValue[0]) + 0.5f)); 1089this.scRgbColor.g = sRgbToScRgb((byte)((255.0f * scRGBValue[1]) + 0.5f)); 1090this.scRgbColor.b = sRgbToScRgb((byte)((255.0f * scRGBValue[2]) + 0.5f));