10 writes to context
PresentationCore (10)
System\Windows\Media\Color.cs (10)
37
context
= new ColorContext(profileUri)
126
c1.
context
= null;
157
c1.
context
= null;
175
c1.
context
= null;
409
Color c1 = new Color {
context
= color1.context };
419
c2.
context
= new ColorContext(PixelFormats.Bgra32);
526
Color c1 = new Color {
context
= color1.context };
536
c2.
context
= new ColorContext(PixelFormats.Bgra32);
634
c1.
context
= color.context;
1080
c2.
context
= new ColorContext(PixelFormats.Bgra32);
57 references to context
PresentationCore (57)
System\Windows\Media\Color.cs (57)
47
if (c1.
context
!= null)
49
c1.nativeColorValue = new float[c1.
context
.NumChannels];
268
if (
context
== null)
290
Uri safeUnescapedUri = new Uri(
context
.ProfileUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.SafeUnescaped),
291
context
.ProfileUri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative);
335
if (
context
== null || color.nativeColorValue == null)
374
if (
context
!= null)
398
if (color1.
context
== null && color2.
context
== null)
407
else if (color1.
context
== color2.
context
)
409
Color c1 = new Color { context = color1.
context
};
411
c1.nativeColorValue = new float[c1.
context
.NumChannels];
421
ColorTransform colorTransform = new ColorTransform(c1.
context
, c2.
context
);
510
if (color1.
context
== null && color2.
context
== null)
520
else if (color1.
context
== null || color2.
context
== null)
524
else if (color1.
context
== color2.
context
)
526
Color c1 = new Color { context = color1.
context
};
528
c1.nativeColorValue = new float[c1.
context
.NumChannels];
538
ColorTransform colorTransform = new ColorTransform(c1.
context
, c2.
context
);
628
if (color.
context
== null)
634
c1.context = color.
context
;
636
c1.ComputeNativeValues(c1.
context
.NumChannels);
696
if (color1.
context
== null && color2.
context
== null)
720
else if (color1.
context
== null || color2.
context
== null)
724
else if (color1.
context
.ColorSpaceFamily == color2.
context
.ColorSpaceFamily)
784
return
context
;
817
if (
context
== null || (
context
.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (
context
.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb))
841
if (
context
== null || (
context
.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (
context
.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb))
865
if (
context
== null || (
context
.ColorSpaceFamily == ColorContext.StandardColorSpace.Srgb) || (
context
.ColorSpaceFamily == ColorContext.StandardColorSpace.ScRgb))
919
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))
1076
if (this.
context
!= null)
1082
ColorTransform colorTransform = new ColorTransform(this.
context
, c2.
context
);
1100
ColorTransform colorTransform = new ColorTransform(this.
context
, new ColorContext(PixelFormats.Bgra32));