25 references to NormalizeOpacity
ReachFramework (25)
AlphaFlattener\BrushProxy.cs (8)
368
_opacity = Utility.
NormalizeOpacity
(brush.Opacity);
562
_opacity *= Utility.
NormalizeOpacity
(opacity);
698
double opacity = _opacity * Utility.
NormalizeOpacity
(y.Color.ScA);
709
double opacity = _opacity * Utility.
NormalizeOpacity
(gs.Color.ScA);
1868
result = Utility.Scale(color, Utility.
NormalizeOpacity
(stopColor.ScA) * _opacity);
2939
double opacity = Utility.
NormalizeOpacity
(brush.Opacity);
3296
Utility.
NormalizeOpacity
(sB.Color.ScA) * brushB._opacity
3374
Debug.Assert(Utility.
NormalizeOpacity
(value) == value, "BrushProxy.Opacity must always be normalized");
AlphaFlattener\DrawingContext.cs (2)
286
linear.Opacity = saveOpacity * Utility.
NormalizeOpacity
(color.ScA);
411
radial.Opacity = saveOpacity * Utility.
NormalizeOpacity
(color.ScA);
AlphaFlattener\MetroDevice.cs (1)
300
opacity = Utility.
NormalizeOpacity
(opacity);
AlphaFlattener\Primitive.cs (5)
261
Debug.Assert(Utility.
NormalizeOpacity
(value) == value, "Opacity should be normalized during tree walking");
524
primitive.Opacity = Utility.
NormalizeOpacity
(dg.Opacity);
605
Opacity *= Utility.
NormalizeOpacity
(sb.Color.ScA) * OpacityMask.Opacity;
1523
double realOpacity = Utility.
NormalizeOpacity
(realBrush.Opacity);
1542
double realOpacity = Utility.
NormalizeOpacity
(realBrush.Opacity);
AlphaFlattener\Utility.cs (5)
1080
return Utility.
NormalizeOpacity
(opacity) > OpaqueEnough;
1089
return Utility.
NormalizeOpacity
(opacity) < AlmostTransparent;
1121
return (byte)(
NormalizeOpacity
(value) * 255);
1187
opacity = Utility.
NormalizeOpacity
(opacity);
2120
if (Utility.IsTransparent(Utility.
NormalizeOpacity
(drawing.Opacity)))
Serialization\DrawingContextFlattener.cs (1)
925
opacity = Utility.
NormalizeOpacity
(opacity);
Serialization\VisualSerializer.cs (2)
2252
opacity *= Utility.
NormalizeOpacity
(sb.Color.ScA) * Utility.
NormalizeOpacity
(opacityMask.Opacity);
Serialization\VisualTreeFlattener.cs (1)
722
Utility.
NormalizeOpacity
(dg.Opacity),