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