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