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