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