10 writes to context
PresentationCore (10)
System\Windows\Media\Color.cs (10)
48c1.context = new ColorContext(profileUri); 136c1.context = null; 167c1.context = null; 185c1.context = null; 420c1.context = color1.context; 431c2.context = new ColorContext(PixelFormats.Bgra32); 539c1.context = color1.context; 550c2.context = new ColorContext(PixelFormats.Bgra32); 648c1.context = color.context; 1097c2.context = new ColorContext(PixelFormats.Bgra32);
57 references to context
PresentationCore (57)
System\Windows\Media\Color.cs (57)
57if (c1.context != null) 59c1.nativeColorValue = new float[c1.context.NumChannels]; 278if (context == null) 300Uri safeUnescapedUri = new Uri(context.ProfileUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), 301context.ProfileUri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative); 345if (context == null || color.nativeColorValue == null) 384if (context != null) 408if (color1.context == null && color2.context == null) 417else if (color1.context == color2.context) 420c1.context = color1.context; 423c1.nativeColorValue = new float[c1.context.NumChannels]; 433ColorTransform colorTransform = new ColorTransform(c1.context, c2.context); 522if (color1.context == null && color2.context == null) 532else if (color1.context == null || color2.context == null) 536else if (color1.context == color2.context) 539c1.context = color1.context; 542c1.nativeColorValue = new float[c1.context.NumChannels]; 552ColorTransform colorTransform = new ColorTransform(c1.context, c2.context); 642if (color.context == null) 648c1.context = color.context; 651c1.ComputeNativeValues(c1.context.NumChannels); 713if (color1.context == null && color2.context == null) 737else if (color1.context == null || color2.context == null) 741else if (color1.context.ColorSpaceFamily == color2.context.ColorSpaceFamily) 801return context; 834if (context == null || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb)) 858if (context == null || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb)) 882if (context == null || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb)) 936if (context == null || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb)) 961if (context == null || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb)) 986if (context == null || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (context.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb)) 1093if (this.context != null) 1099ColorTransform colorTransform = new ColorTransform(this.context, c2.context); 1117ColorTransform colorTransform = new ColorTransform(this.context, new ColorContext(PixelFormats.Bgra32));