25 references to NormalizeOpacity
ReachFramework (25)
AlphaFlattener\BrushProxy.cs (8)
371
_opacity = Utility.
NormalizeOpacity
(brush.Opacity);
565
_opacity *= Utility.
NormalizeOpacity
(opacity);
701
double opacity = _opacity * Utility.
NormalizeOpacity
(y.Color.ScA);
712
double opacity = _opacity * Utility.
NormalizeOpacity
(gs.Color.ScA);
1870
result = Utility.Scale(color, Utility.
NormalizeOpacity
(stopColor.ScA) * _opacity);
2940
double opacity = Utility.
NormalizeOpacity
(brush.Opacity);
3294
Utility.
NormalizeOpacity
(sB.Color.ScA) * brushB._opacity
3373
Debug.Assert(Utility.
NormalizeOpacity
(value) == value, "BrushProxy.Opacity must always be normalized");
AlphaFlattener\DrawingContext.cs (2)
288
linear.Opacity = saveOpacity * Utility.
NormalizeOpacity
(color.ScA);
413
radial.Opacity = saveOpacity * Utility.
NormalizeOpacity
(color.ScA);
AlphaFlattener\MetroDevice.cs (1)
304
opacity = Utility.
NormalizeOpacity
(opacity);
AlphaFlattener\Primitive.cs (5)
266
Debug.Assert(Utility.
NormalizeOpacity
(value) == value, "Opacity should be normalized during tree walking");
525
primitive.Opacity = Utility.
NormalizeOpacity
(dg.Opacity);
606
Opacity *= Utility.
NormalizeOpacity
(sb.Color.ScA) * OpacityMask.Opacity;
1517
double realOpacity = Utility.
NormalizeOpacity
(realBrush.Opacity);
1536
double realOpacity = Utility.
NormalizeOpacity
(realBrush.Opacity);
AlphaFlattener\Utility.cs (5)
1091
return Utility.
NormalizeOpacity
(opacity) > OpaqueEnough;
1100
return Utility.
NormalizeOpacity
(opacity) < AlmostTransparent;
1132
return (byte)(
NormalizeOpacity
(value) * 255);
1198
opacity = Utility.
NormalizeOpacity
(opacity);
2130
if (Utility.IsTransparent(Utility.
NormalizeOpacity
(drawing.Opacity)))
Serialization\DrawingContextFlattener.cs (1)
935
opacity = Utility.
NormalizeOpacity
(opacity);
Serialization\VisualSerializer.cs (2)
2259
opacity *= Utility.
NormalizeOpacity
(sb.Color.ScA) * Utility.
NormalizeOpacity
(opacityMask.Opacity);
Serialization\VisualTreeFlattener.cs (1)
729
Utility.
NormalizeOpacity
(dg.Opacity),