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