10 writes to context
PresentationCore (10)
System\Windows\Media\Color.cs (10)
40c1.context = new ColorContext(profileUri); 128c1.context = null; 159c1.context = null; 177c1.context = null; 412c1.context = color1.context; 423c2.context = new ColorContext(PixelFormats.Bgra32); 531c1.context = color1.context; 542c2.context = new ColorContext(PixelFormats.Bgra32); 640c1.context = color.context; 1089c2.context = new ColorContext(PixelFormats.Bgra32);
57 references to context
PresentationCore (57)
System\Windows\Media\Color.cs (57)
49if (c1.context != null) 51c1.nativeColorValue = new float[c1.context.NumChannels]; 270if (context == null) 292Uri safeUnescapedUri = new Uri(context.ProfileUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), 293context.ProfileUri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative); 337if (context == null || color.nativeColorValue == null) 376if (context != null) 400if (color1.context == null && color2.context == null) 409else if (color1.context == color2.context) 412c1.context = color1.context; 415c1.nativeColorValue = new float[c1.context.NumChannels]; 425ColorTransform colorTransform = new ColorTransform(c1.context, c2.context); 514if (color1.context == null && color2.context == null) 524else if (color1.context == null || color2.context == null) 528else if (color1.context == color2.context) 531c1.context = color1.context; 534c1.nativeColorValue = new float[c1.context.NumChannels]; 544ColorTransform colorTransform = new ColorTransform(c1.context, c2.context); 634if (color.context == null) 640c1.context = color.context; 643c1.ComputeNativeValues(c1.context.NumChannels); 705if (color1.context == null && color2.context == null) 729else if (color1.context == null || color2.context == null) 733else if (color1.context.ColorSpaceFamily == color2.context.ColorSpaceFamily) 793return context; 826if (context == null || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb)) 850if (context == null || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb)) 874if (context == null || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb)) 928if (context == null || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb)) 953if (context == null || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb)) 978if (context == null || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb)) 1085if (this.context != null) 1091ColorTransform colorTransform = new ColorTransform(this.context, c2.context); 1109ColorTransform colorTransform = new ColorTransform(this.context, new ColorContext(PixelFormats.Bgra32));