10 writes to context
PresentationCore (10)
Core\CSharp\System\Windows\Media\Color.cs (10)
49
c1.
context
= new ColorContext(profileUri);
137
c1.
context
= null;
168
c1.
context
= null;
186
c1.
context
= null;
428
c1.
context
= color1.context;
439
c2.
context
= new ColorContext(PixelFormats.Bgra32);
547
c1.
context
= color1.context;
558
c2.
context
= new ColorContext(PixelFormats.Bgra32);
656
c1.
context
= color.context;
1105
c2.
context
= new ColorContext(PixelFormats.Bgra32);
57 references to context
PresentationCore (57)
Core\CSharp\System\Windows\Media\Color.cs (57)
58
if (c1.
context
!= null)
60
c1.nativeColorValue = new float[c1.
context
.NumChannels];
281
if (
context
== null)
308
Uri safeUnescapedUri = new Uri(
context
.ProfileUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped),
309
context
.ProfileUri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative);
353
if (
context
== null || color.nativeColorValue == null)
392
if (
context
!= null)
416
if (color1.
context
== null && color2.
context
== null)
425
else if (color1.
context
== color2.
context
)
428
c1.context = color1.
context
;
431
c1.nativeColorValue = new float[c1.
context
.NumChannels];
441
ColorTransform colorTransform = new ColorTransform(c1.
context
, c2.
context
);
530
if (color1.
context
== null && color2.
context
== null)
540
else if (color1.
context
== null || color2.
context
== null)
544
else if (color1.
context
== color2.
context
)
547
c1.context = color1.
context
;
550
c1.nativeColorValue = new float[c1.
context
.NumChannels];
560
ColorTransform colorTransform = new ColorTransform(c1.
context
, c2.
context
);
650
if (color.
context
== null)
656
c1.context = color.
context
;
659
c1.ComputeNativeValues(c1.
context
.NumChannels);
721
if (color1.
context
== null && color2.
context
== null)
745
else if (color1.
context
== null || color2.
context
== null)
749
else if (color1.
context
.ColorSpaceFamily == color2.
context
.ColorSpaceFamily)
809
return
context
;
842
if (
context
== null || (
context
.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (
context
.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb))
866
if (
context
== null || (
context
.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (
context
.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb))
890
if (
context
== null || (
context
.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (
context
.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb))
944
if (
context
== null || (
context
.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (
context
.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb))
969
if (
context
== null || (
context
.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (
context
.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb))
994
if (
context
== null || (
context
.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (
context
.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb))
1101
if (this.
context
!= null)
1107
ColorTransform colorTransform = new ColorTransform(this.
context
, c2.
context
);
1129
ColorTransform colorTransform = new ColorTransform(this.
context
, new ColorContext(PixelFormats.Bgra32));