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