10 writes to context
PresentationCore (10)
System\Windows\Media\Color.cs (10)
38context = new ColorContext(profileUri) 127c1.context = null; 158c1.context = null; 176c1.context = null; 410Color c1 = new Color { context = color1.context }; 420c2.context = new ColorContext(PixelFormats.Bgra32); 527Color c1 = new Color { context = color1.context }; 537c2.context = new ColorContext(PixelFormats.Bgra32); 635c1.context = color.context; 1081c2.context = new ColorContext(PixelFormats.Bgra32);
57 references to context
PresentationCore (57)
System\Windows\Media\Color.cs (57)
48if (c1.context != null) 50c1.nativeColorValue = new float[c1.context.NumChannels]; 269if (context == null) 291Uri safeUnescapedUri = new Uri(context.ProfileUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), 292context.ProfileUri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative); 336if (context == null || color.nativeColorValue == null) 375if (context != null) 399if (color1.context == null && color2.context == null) 408else if (color1.context == color2.context) 410Color c1 = new Color { context = color1.context }; 412c1.nativeColorValue = new float[c1.context.NumChannels]; 422ColorTransform colorTransform = new ColorTransform(c1.context, c2.context); 511if (color1.context == null && color2.context == null) 521else if (color1.context == null || color2.context == null) 525else if (color1.context == color2.context) 527Color c1 = new Color { context = color1.context }; 529c1.nativeColorValue = new float[c1.context.NumChannels]; 539ColorTransform colorTransform = new ColorTransform(c1.context, c2.context); 629if (color.context == null) 635c1.context = color.context; 637c1.ComputeNativeValues(c1.context.NumChannels); 697if (color1.context == null && color2.context == null) 721else if (color1.context == null || color2.context == null) 725else if (color1.context.ColorSpaceFamily == color2.context.ColorSpaceFamily) 785return context; 818if (context == null || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb)) 842if (context == null || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb)) 866if (context == null || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb)) 920if (context == null || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb)) 945if (context == null || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb)) 970if (context == null || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb)) 1077if (this.context != null) 1083ColorTransform colorTransform = new ColorTransform(this.context, c2.context); 1101ColorTransform colorTransform = new ColorTransform(this.context, new ColorContext(PixelFormats.Bgra32));