25 references to NormalizeOpacity
ReachFramework (25)
AlphaFlattener\BrushProxy.cs (8)
367
_opacity = Utility.
NormalizeOpacity
(brush.Opacity);
561
_opacity *= Utility.
NormalizeOpacity
(opacity);
697
double opacity = _opacity * Utility.
NormalizeOpacity
(y.Color.ScA);
708
double opacity = _opacity * Utility.
NormalizeOpacity
(gs.Color.ScA);
1864
result = Utility.Scale(color, Utility.
NormalizeOpacity
(stopColor.ScA) * _opacity);
2935
double opacity = Utility.
NormalizeOpacity
(brush.Opacity);
3292
Utility.
NormalizeOpacity
(sB.Color.ScA) * brushB._opacity
3370
Debug.Assert(Utility.
NormalizeOpacity
(value) == value, "BrushProxy.Opacity must always be normalized");
AlphaFlattener\DrawingContext.cs (2)
285
linear.Opacity = saveOpacity * Utility.
NormalizeOpacity
(color.ScA);
410
radial.Opacity = saveOpacity * Utility.
NormalizeOpacity
(color.ScA);
AlphaFlattener\MetroDevice.cs (1)
299
opacity = Utility.
NormalizeOpacity
(opacity);
AlphaFlattener\Primitive.cs (5)
260
Debug.Assert(Utility.
NormalizeOpacity
(value) == value, "Opacity should be normalized during tree walking");
523
primitive.Opacity = Utility.
NormalizeOpacity
(dg.Opacity);
604
Opacity *= Utility.
NormalizeOpacity
(sb.Color.ScA) * OpacityMask.Opacity;
1516
double realOpacity = Utility.
NormalizeOpacity
(realBrush.Opacity);
1535
double realOpacity = Utility.
NormalizeOpacity
(realBrush.Opacity);
AlphaFlattener\Utility.cs (5)
1079
return Utility.
NormalizeOpacity
(opacity) > OpaqueEnough;
1088
return Utility.
NormalizeOpacity
(opacity) < AlmostTransparent;
1120
return (byte)(
NormalizeOpacity
(value) * 255);
1186
opacity = Utility.
NormalizeOpacity
(opacity);
2119
if (Utility.IsTransparent(Utility.
NormalizeOpacity
(drawing.Opacity)))
Serialization\DrawingContextFlattener.cs (1)
924
opacity = Utility.
NormalizeOpacity
(opacity);
Serialization\VisualSerializer.cs (2)
2251
opacity *= Utility.
NormalizeOpacity
(sb.Color.ScA) * Utility.
NormalizeOpacity
(opacityMask.Opacity);
Serialization\VisualTreeFlattener.cs (1)
721
Utility.
NormalizeOpacity
(dg.Opacity),