341 references to Utility
ReachFramework (341)
AlphaFlattener\BrushProxy.cs (147)
229if (! Utility.AreClose(ratio, 1.0)) 367_opacity = Utility.NormalizeOpacity(brush.Opacity); 411if (! (_brush is SolidColorBrush) && ! Utility.IsIdentity(_brush.RelativeTransform)) 416Matrix mat = Utility.MergeTransform(_brush.Transform, _brush.RelativeTransform, bounds); 437Rect viewport = Utility.GetTileAbsoluteViewport(tb, bounds); 439if (!Utility.IsRenderVisible(viewport)) 461Rect viewbox = Utility.GetTileAbsoluteViewbox(tb); 463if (!Utility.IsValidViewbox(viewbox, tb.Stretch != Stretch.None)) 488lb.StartPoint = Utility.MapPoint(bounds, lb.StartPoint); 489lb.EndPoint = Utility.MapPoint(bounds, lb.EndPoint); 509rb.Center = Utility.MapPoint(bounds, rb.Center); 510rb.GradientOrigin = Utility.MapPoint(bounds, rb.GradientOrigin); 561_opacity *= Utility.NormalizeOpacity(opacity); 599if (!Utility.IsOpaque(_opacity)) 608return Utility.IsOpaque(y.Color.ScA); 617if (!Utility.IsOpaque(gs.Color.ScA)) 668Debug.Assert(Utility.IsRenderVisible(vb), "TileBrush.Viewbox area must be positive"); 697double opacity = _opacity * Utility.NormalizeOpacity(y.Color.ScA); 699return Utility.IsTransparent(opacity); 708double opacity = _opacity * Utility.NormalizeOpacity(gs.Color.ScA); 710if (!Utility.IsTransparent(opacity)) 721if (Utility.IsTransparent(_opacity)) 735Debug.Assert(Utility.IsRenderVisible(vb), "TileBrush.Viewbox must be visible"); 739Matrix viewboxToViewportTransformHint = Utility.CreateViewboxToViewportTransform(db); 749if (Utility.IsTransparent(_opacity)) 858return BlendColorWithBrush(_opacityOnly, Utility.Scale(sA.Color, _opacity), brushB, false); 865return BlendColorWithBrush(brushB._opacityOnly, Utility.Scale(sB.Color, brushB._opacity), this, true); 1028else if (!Utility.IsOpaque(_opacity)) 1031if (_opacity != Utility.GetOpacity(_brush)) 1094if (Utility.IsTransparent(_opacity)) 1114if (isOpaque && (_brush.Transform == null || Utility.IsScaleTranslate(_brush.Transform.Value))) 1123Utility.AreClose(linearBrush.StartPoint.X, linearBrush.EndPoint.X) ? 1 : size.Width, 1124Utility.AreClose(linearBrush.StartPoint.Y, linearBrush.EndPoint.Y) ? 1 : size.Height 1139cost *= Utility.TransparencyCostFactor; 1200if (!Utility.AreClose(bounds, viewport)) 1252Matrix viewboxToViewportTransformHint = Utility.CreateViewboxToViewportTransform(drawingBrush); 1333DrawingBrush newBrush = Utility.CreateNonInheritingDrawingBrush(drawing); 1410DrawingBrush brush = Utility.CreateNonInheritingDrawingBrush(drawing); 1446if (!Utility.IsTransparent(_beforeDrawing.ScA)) 1463if (!Utility.IsTransparent(_afterDrawing.ScA)) 1501if (!Utility.IsTransparent(_beforeDrawing.ScA) || !Utility.IsTransparent(_afterDrawing.ScA) || _brushList == null) 1517if (!Utility.IsTransparent(_beforeDrawing.ScA)) 1528if (_brushList == null && !Utility.IsTransparent(_brush.Opacity)) 1535if (!Utility.IsOpaque(inheritedOpacity)) 1545if (!Utility.IsOpaque(_opacity)) 1582if (!Utility.IsTransparent(_afterDrawing.ScA)) 1606if (!Utility.IsOpaque(p.Opacity)) 1632Geometry shape = Utility.TransformGeometry(p.GetShapeGeometry(), transform); 1634shape = Utility.Exclude(viewbox, shape, p.Transform); 1671if (Utility.IsTransparent(p.Opacity)) 1701Geometry shape = Utility.TransformGeometry(p.GetShapeGeometry(), drawingToWorldTransformHint); 1705shape = Utility.Intersect(viewbox, shape, Matrix.Identity, out empty); 1712if (!Utility.IsRenderVisible(shape.Bounds)) 1735Rect content = Utility.GetTileContentBounds(brush); 1740Matrix viewboxToViewportTransform = Utility.CreateViewboxToViewportTransform(brush); 1841b._afterDrawing = Utility.BlendColor(b._afterDrawing, color); 1845b._beforeDrawing = Utility.BlendColor(color, b._beforeDrawing); 1864result = Utility.Scale(color, Utility.NormalizeOpacity(stopColor.ScA) * _opacity); 1870result = Utility.BlendColor(Utility.Scale(stopColor, _opacity), color); 1874result = Utility.BlendColor(color, Utility.Scale(stopColor, _opacity)); 1988bool colorOpaque = Utility.IsOpaque(color.ScA); 2045Color prevColor = Utility.NormalizeColor(prevStop.Color); 2057currentColor = Utility.NormalizeColor(currentStop.Color); 2213if (Utility.IsScaleTranslate(B2A)) 2250if (Utility.IsMultipleOf(viewportA.Width, width) && 2251Utility.IsMultipleOf(viewportA.Height, height)) 2279if (Utility.IsZero(start.X - end.X)) 2283if (Utility.IsMultipleOf(viewportA.Height, height)) 2288else if (Utility.IsZero(start.Y - end.Y)) 2292if (Utility.IsMultipleOf(viewportA.Width, width)) 2407if ((gsA == null) || (gsB == null) || !Utility.IsZero(gsA.Offset - gsB.Offset)) 2427gs.Color = Utility.Scale(gsA.Color, gsB.Color.ScA); 2431gs.Color = Utility.Scale(gsB.Color, gsA.Color.ScA); 2435gs.Color = Utility.BlendColor(gsA.Color, gsB.Color); 2483if (!Utility.IsZero(dxA - dxB) || !Utility.IsZero(dyA - dyB)) 2513if ((Utility.IsZero(dX) || Utility.IsMultipleOf(dX, dxA * factor)) && 2514(Utility.IsZero(dY) || Utility.IsMultipleOf(dY, dyA * factor))) 2560if (!Utility.AreClose(rbA.Center * rbA.Transform.Value, rbB.Center * rbB.Transform.Value)) 2566if (!Utility.AreClose(rbA.GradientOrigin * rbA.Transform.Value, rbB.GradientOrigin * rbB.Transform.Value)) 2572if (Utility.AreClose(new Vector(Math.Abs(rbA.RadiusX), Math.Abs(rbA.RadiusY)) * rbA.Transform.Value, 2606if ((sb != null) && Utility.IsOpaque(sb.Opacity)) 2623if ((sb != null) && Utility.IsOpaque(sb.Opacity)) 2714if (Utility.IsTransparent(color.ScA)) 2815if (Utility.IsTransparent(brush.Opacity)) 2820if (brush.Transform != null && !Utility.IsValid(brush.Transform.Value)) 2830if (Utility.IsTransparent(solidBrush.Color.ScA)) 2853if (!Utility.IsValid(stop.Offset)) 2864if (!Utility.IsRenderVisible(linearBrush.StartPoint) || !Utility.IsRenderVisible(linearBrush.EndPoint)) 2877if (!Utility.IsRenderVisible(radialBrush.Center) || 2878!Utility.IsRenderVisible(radialBrush.GradientOrigin) || 2879!Utility.IsRenderVisible(radialBrush.RadiusX) || 2880!Utility.IsRenderVisible(radialBrush.RadiusY)) 2897if (! Utility.IsRenderVisible(tileBrush.Viewport) || 2898! Utility.IsValidViewbox(tileBrush.Viewbox, tileBrush.Stretch != Stretch.None) 2904Rect contentBounds = Utility.GetTileContentBounds(tileBrush); 2906if (!Utility.IsRenderVisible(contentBounds)) 2935double opacity = Utility.NormalizeOpacity(brush.Opacity); 2953if (!Utility.IsTransparent(gs.Color.ScA)) 3037Transform visualTransform = Utility.GetVisualTransform(visual); 3049DrawingBrush drawingBrush = Utility.CreateNonInheritingDrawingBrush(drawing); 3104Matrix visualToWorldTransformHint = Utility.CreateViewboxToViewportTransform(vb, bounds); 3134Transform visualTransform = Utility.GetVisualTransform(vb.Visual); 3146DrawingBrush drawingBrush = Utility.CreateNonInheritingDrawingBrush(drawing); 3183DrawingBrush db = Utility.CreateNonInheritingDrawingBrush(drawingImage.Drawing); 3228if (Utility.IsOpaque(colorA.ScA)) 3262if (Utility.IsOpaque(colorA.ScA)) 3290Utility.Scale( 3292Utility.NormalizeOpacity(sB.Color.ScA) * brushB._opacity 3299Utility.BlendColor( 3301Utility.Scale( 3370Debug.Assert(Utility.NormalizeOpacity(value) == value, "BrushProxy.Opacity must always be normalized"); 3644Utility.IsValid(a) && Utility.IsValid(r) && Utility.IsValid(g) && Utility.IsValid(b), 3658c = Utility.NormalizeColor(c); 3686return Color.FromArgb(Utility.OpacityToByte(m_a), Utility.ColorToByte(m_r), Utility.ColorToByte(m_g), Utility.ColorToByte(m_b)); 3710Debug.Assert(Utility.IsValid(opacity), "Opacity comes from BrushProxy, should be valid"); 3911if ((Utility.AreClose(offset, _offset[k])) && 3912Utility.AreClose(offset, _offset[k + 1])) 4001if (!Utility.IsRenderVisible(brush.StartPoint) || 4002!Utility.IsRenderVisible(brush.EndPoint) || 4003!Utility.IsValid(brushToWorldTransform)) 4024Geometry xgeometry = Utility.TransformGeometry(geometry, worldToXTransform); 4037double xToWorldScale = Utility.GetScale(brushToWorldTransform); 4135if (Utility.IsZero(gradientVector.X) && Utility.IsZero(gradientVector.Y)) 4179Debug.Assert(Utility.IsValid(opacity), "Opacity comes from BrushProxy, should be valid"); 4194if (!Utility.IsRenderVisible(_x0) || 4195!Utility.IsRenderVisible(_y0) || 4196!Utility.IsRenderVisible(_u0) || 4197!Utility.IsRenderVisible(_v0) || 4198!Utility.IsRenderVisible(_rx) || 4199!Utility.IsRenderVisible(_ry)) 4211shape = Utility.TransformGeometry(shape, mat); 4294bool simple = Utility.IsScaleTranslate(_trans);
AlphaFlattener\DrawingContext.cs (15)
82clip = Utility.Intersect(_clip, Utility.TransformGeometry(clip, _transform), Matrix.Identity, out empty); 103bool uniform = Utility.HasUniformScale(brushTrans, out scale); 114geometry = Utility.InverseTransformGeometry(geometry, brushTrans); 116geometry = Utility.TransformGeometry(geometry, brushTrans); 145clip = Utility.Intersect(_clip, Utility.TransformGeometry(clip, _transform), Matrix.Identity, out empty); 170clip = Utility.Intersect(_clip, Utility.TransformGeometry(clip, _transform), Matrix.Identity, out empty); 285linear.Opacity = saveOpacity * Utility.NormalizeOpacity(color.ScA); 410radial.Opacity = saveOpacity * Utility.NormalizeOpacity(color.ScA); 608Matrix mat = Utility.CreateMappingTransform(bounds, width, height); 744geometry = Utility.Intersect(geometry, clip, Matrix.Identity, out empty); 841if (!Utility.IsRenderVisible(clip.Bounds)) 856Geometry imageClip = Utility.TransformGeometry(clip, imageTransform);
AlphaFlattener\Flattener.cs (11)
86Debug.Assert(Utility.IsValid(opacity) && Utility.IsValid(tree.Opacity), "Invalid opacity encountered, should've been normalized in conversion to Primitive"); 117if (Utility.IsTransparent(opacity)) 124Geometry transclip = Utility.TransformGeometry(tree.Clip, transform); 128clip = Utility.Intersect(clip, transclip, Matrix.Identity, out empty); 145(Utility.IsOpaque(opacity) && (opacityMask == null))) // For opaque subtree, just push trasform/clip into it. 199(!gp.IsOpaque || !Utility.IsOpaque(opacity))) 230Geometry transclip = Utility.TransformGeometry(tree.Clip, transform); 234tree.Clip = Utility.Intersect(transclip, clip, Matrix.Identity, out empty); 238empty = Utility.IsEmpty(tree.Clip, Matrix.Identity); 1146g = Utility.TransformGeometry(g, p.Transform);
AlphaFlattener\ImageProxy.cs (12)
205int op = Utility.OpacityToByte(opacity); 238Utility.BlendUnderColor(_pixels, _pixelWidth * _pixelHeight, color, opacity, opacityOnly); 243if (opacityOnly || !Utility.IsOpaque(opacity) || !IsOpaque()) 248Utility.BlendOverColor(_pixels, _pixelWidth * _pixelHeight, color, opacity, opacityOnly); 264BlendUnderColor(Utility.Scale(sb.Color, brush.Opacity), 1, opacityOnly); 272Utility.BlendPixels(_pixels, opacityOnly, brushPixels, brush.OpacityOnly, _pixelWidth * _pixelHeight, _pixels); 305BlendOverColor(Utility.Scale(sb.Color, brush.Opacity), 1.0, opacityOnly); 313Utility.BlendPixels(brushPixels, brush.OpacityOnly, _pixels, opacityOnly, _pixelWidth * _pixelHeight, _pixels); 336if (! Utility.IsOpaque(c.ScA)) 452if (Utility.IsZero(dpiScaleX)) 454if (Utility.IsZero(dpiScaleY)) 500pixels = Utility.ClipPixels(_pixels, _pixelWidth, _pixelHeight, x0, y0, width, height);
AlphaFlattener\MetroDevice.cs (7)
145if (Utility.IsTransparent(_opacity) || ((brush == null) && (pen == null || pen.Brush == null)) || (geometry == null)) 299opacity = Utility.NormalizeOpacity(opacity); 301if (!Utility.IsValid(transform)) 319_clip = Utility.Intersect(_clip, clip, Matrix.Identity, out empty); 343_clip = Utility.TransformGeometry(_clip, invertTransform); // transform inherited clip to this level 348c.Clip = Utility.Intersect(clip, _clip, Matrix.Identity, out empty); // Combined with inherited attributes 360if (Utility.ExtractOpacityMaskOpacity(opacityMask, out op, maskBounds))
AlphaFlattener\Optimizer.cs (3)
51Matrix mat = Utility.CreateMappingTransform(m_bounds, width, height); 75Geometry geometry = Utility.Intersect(primitive.GetShapeGeometry(), primitive.Clip, Matrix.Identity, out empty); 329complexity = Utility.GetGeometryPointCount(geo);
AlphaFlattener\Primitive.cs (57)
168shape = Utility.Intersect(shape, Clip, Matrix.Identity, out empty); 191if (!Utility.IsValid(rect)) 208if (Utility.IsTransparent(Opacity)) 218if (!Utility.IsOpaque(Opacity)) 220factor = Utility.TransparencyCostFactor; 260Debug.Assert(Utility.NormalizeOpacity(value) == value, "Opacity should be normalized during tree walking"); 315if (d == null || !Utility.IsRenderVisible(d.Bounds)) 418DrawingBrush db = Utility.CreateNonInheritingDrawingBrush(di.Drawing); 457if (Utility.IsRenderVisible(dg)) 494BitmapSource bitmap = Utility.RasterizeDrawing( 523primitive.Opacity = Utility.NormalizeOpacity(dg.Opacity); 576if (!Utility.IsOpaque(opacity)) 604Opacity *= Utility.NormalizeOpacity(sb.Color.ScA) * OpacityMask.Opacity; 801if ((drawingBrush == null) || ! Utility.IsIdentity(drawingBrush.Transform)) 843brushGeometry = Utility.TransformGeometry(worldGeometry, worldToBrushTransform); 878Matrix viewboxToViewportTransform = Utility.CreateViewboxToViewportTransform( 888gdiRasterizeCost *= Utility.TransparencyCostFactor; 934viewboxToViewportTransform = Utility.CreateViewboxToViewportTransform( 1055double scale = Utility.GetScale(Transform); 1090if (!Utility.IsOpaque(Opacity) || (OpacityMask != null)) 1130Geometry = Utility.Intersect(Geometry, Clip, Matrix.Identity, out empty); 1165Geometry g = Utility.TransformGeometry(WidenGeometry, Transform); 1178Geometry = Utility.Exclude(Geometry, Utility.InverseTransformGeometry(g, Transform), Transform); 1259if (!Utility.IsOpaque(Opacity)) 1282if (Utility.IsTransparent(Opacity)) 1320if (Utility.HasUniformScale(Transform, out scale)) 1332Geometry = Utility.TransformGeometry(Geometry, Transform); 1378Rect content = Utility.GetTileContentBounds(tb); 1389Matrix viewboxTransform = Utility.CreateViewboxToViewportTransform(tb); 1393Clip = Utility.Intersect(Clip, Geometry, Matrix.Identity, out empty); 1408Transform = Utility.MultiplyTransform(tb.Transform, new MatrixTransform(Transform)) 1411Clip = Utility.Intersect(Clip, viewportGeometry, Matrix.Identity, out empty); 1429if (!empty && tb.Transform != null && !Utility.IsScaleTranslate(tb.Transform.Value)) 1450Transform = Utility.MultiplyTransform(tb.Transform, new MatrixTransform(Transform)) 1453Clip = Utility.Intersect(Clip, contentGeometry, Matrix.Identity, out empty); 1484geometryClip = Utility.TransformGeometry(geometryClip, inverseTransform); 1488Geometry = Utility.Intersect(Geometry, geometryClip, Matrix.Identity, out empty); 1516double realOpacity = Utility.NormalizeOpacity(realBrush.Opacity); 1535double realOpacity = Utility.NormalizeOpacity(realBrush.Opacity); 1549if (Utility.IsOpaque(opacity) && (opacityMask == null)) 1595Geometry g = Utility.TransformGeometry(WidenGeometry, Transform); 1693Geometry g = Utility.TransformGeometry(WidenGeometry, Transform); 1708if (Utility.Covers(g, _bounds)) 1719Clip = Utility.Exclude(Clip, g, Matrix.Identity); 1755bounds = Utility.TransformRect(bounds, Transform); 1833return Utility.TransformGeometry(new RectangleGeometry(DstRect), Transform); 1842Clip = Utility.TransformGeometry(new RectangleGeometry(DstRect), Transform); 1845Clip = Utility.Exclude(Clip, g, Matrix.Identity); 1916if (Utility.IsTransparent(Opacity)) 1931Geometry dest = Utility.TransformGeometry(new RectangleGeometry(DstRect), Transform); 1933if (Utility.Covers(Clip, dest)) // If dest is inside clipping region, ignore clipping 1963return Utility.TransformRect(DstRect, Transform); 2074if (Utility.IsTransparent(Opacity)) 2116return Utility.TransformRect(bounds, Transform); 2206if (!Utility.FullyCovers(primitive.Clip, pshape)) 2212return Utility.FullyCovers(primitive.GetShapeGeometry(), pshape);
AlphaFlattener\PrimitiveList.cs (3)
253bool skip = !Utility.IsRenderVisible(info.bounds) || Utility.Disjoint(p.Clip, info.bounds); 269if ((p.Clip != null) && Utility.IsRectangle(p.Clip))
AlphaFlattener\PrimitiveRenderer.cs (10)
32bounds = Utility.TransformGeometry(new RectangleGeometry(dest), trans); 120cur = Utility.TransformGeometry(cur, trans); 259Geometry diff = Utility.Exclude(bounds, topBounds, trans); 300clip = Utility.Intersect(clip, bounds, Matrix.Identity, out empty); 359inter = Utility.Intersect(cur, topBounds, Matrix.Identity, out empty); 416Geometry diff = Utility.Exclude(cur, topBounds, Matrix.Identity); 469Geometry clip = Utility.Intersect(inter, Utility.TransformGeometry(new RectangleGeometry(ip.DstRect), ip.Transform), ip.Transform, out empty); 474Geometry clipImageSpace = Utility.TransformGeometry(clip, ReverseMap(ip.Transform, ip.DstRect, imageWidth, imageHeight)); 528Geometry geo = Utility.Intersect(cur, _clip, Matrix.Identity, out empty);
AlphaFlattener\Utility.cs (16)
1079return Utility.NormalizeOpacity(opacity) > OpaqueEnough; 1088return Utility.NormalizeOpacity(opacity) < AlmostTransparent; 1104return Utility.IsOpaque(sb.Color.ScA); 1185color = Utility.NormalizeColor(color); 1186opacity = Utility.NormalizeOpacity(opacity); 1856if (!Utility.IsRenderVisible(visualBounds)) 2119if (Utility.IsTransparent(Utility.NormalizeOpacity(drawing.Opacity))) 2125if (drawing.ClipGeometry != null && !Utility.IsRenderVisible(drawing.ClipGeometry.Bounds)) 2128if (drawing.Transform != null && !Utility.IsValid(drawing.Transform.Value)) 2518(Utility.AreClose(point.X, _rect.Left) || Utility.AreClose(point.X, _rect.Right)) && 2519(Utility.AreClose(point.Y, _rect.Top) || Utility.AreClose(point.Y, _rect.Bottom)); 2625bool xzero = Utility.IsZero(vector.X); 2626bool yzero = Utility.IsZero(vector.Y);
Serialization\DrawingContextFlattener.cs (9)
80Debug.Assert(Utility.IsValid(opacity), "Invalid opacity should clip subtree"); 116clip = Utility.TransformGeometry(clip, Transform); 119clip = Utility.Intersect(clip, Clip, Matrix.Identity, out empty); 365if (!Utility.IsRenderVisible(bounds)) 374clip = Utility.TransformGeometry(clip, worldToVisualTransform); 385if (!Utility.IsRenderVisible(bounds)) 423bitmap = Utility.RasterizeVisual( 924opacity = Utility.NormalizeOpacity(opacity); 940if (!Utility.IsOpaque(opacity))
Serialization\VisualSerializer.cs (36)
340Color color = Utility.Scale(solidBrush.Color, solidBrush.Opacity); 438Rect vb = Utility.GetTileAbsoluteViewbox(brush); 714WriteAttr("StartPoint", Utility.MapPoint(bounds, lb.StartPoint)); 715WriteAttr("EndPoint", Utility.MapPoint(bounds, lb.EndPoint)); 748WriteAttr("Center", Utility.MapPoint(bounds, rb.Center)); 751WriteAttr("GradientOrigin", Utility.MapPoint(bounds, rb.GradientOrigin)); 777Matrix trans = Utility.MergeTransform(db.Transform, db.RelativeTransform, bounds); 782Matrix drawingToWorldTransform = Utility.CreateViewboxToViewportTransform(db, bounds); 971return Utility.IsZero(mat.M11 - mat.M22) && 972Utility.IsZero(mat.M12) && 973Utility.IsZero(mat.M21); 980if (!Utility.IsIdentity(mat)) 1194if ((path.Transform != null) && !Utility.IsIdentity(path.Transform)) 1367Matrix mat = Utility.MergeTransform(trans, relative, bounds); 1369if (!Utility.IsIdentity(mat)) 1377if (!Utility.IsIdentity(trans)) 1439pg = Utility.GetAsPathGeometry(geo); 1549if (!forStroke && !Utility.IsRenderVisible(pg.Bounds)) 1886if (!Utility.IsRenderVisible(bounds)) 1912bool isLineGeometry = Utility.IsLineSegment(geometry); 1957if (!Utility.IsIdentity(trans)) 1961if (Utility.IsOne(mat.M11) && 1962Utility.IsOne(mat.M22) && 1963Utility.IsZero(mat.M12) && 1964Utility.IsZero(mat.M21)) 1992BitmapSource bitmap = Utility.RasterizeDrawing( 2006Debug.Assert(Utility.IsScaleTranslate(bitmapToDrawingTransform)); 2077Uri uri = Utility.GetFontUri(glyphRun.GlyphTypeface); 2251opacity *= Utility.NormalizeOpacity(sb.Color.ScA) * Utility.NormalizeOpacity(opacityMask.Opacity); 2256if (!Utility.IsOne(opacity)) 2313if (!Utility.IsIdentity(transform)) 2321SetCoordinateFormat(Math.Min(Utility.GetScaleX(mat), Utility.GetScaleY(mat))); 2352bool noTrans = Utility.IsIdentity(transform); 2363Utility.IsOne(opacity) &&
Serialization\VisualTreeFlattener.cs (14)
113if (Microsoft.Internal.AlphaFlattener.Utility.NeedPremultiplyAlpha(value as BitmapSource)) 388if (Utility.IsTransparent(dg.Opacity)) 393if ((dg.Transform != null) || (dg.ClipGeometry != null) || (!Utility.IsOne(dg.Opacity))) 448Transform trans = Utility.GetVisualTransform(visual); 455if (trans != null && !Utility.IsValid(trans.Value)) 461if (!Utility.IsRenderVisible(bounds)) 467if ((clip != null) && !Utility.IsRenderVisible(clip.Bounds)) 475if (effect == null && (Utility.IsTransparent(opacity) || BrushProxy.IsEmpty(mask))) 482if ((mask != null) && Utility.IsBrushOpaque(mask)) 551clip = Utility.TransformGeometry(clip, clipToWorldSpace); 555clip = Utility.Intersect(inheritedClipping, clip, Matrix.Identity, out empty); 664if (d == null || !Utility.IsRenderVisible(d.Bounds)) 706if (Utility.IsRenderVisible(dg)) 721Utility.NormalizeOpacity(dg.Opacity),
Serialization\XpsImageSerializationService.cs (1)
81if (Microsoft.Internal.AlphaFlattener.Utility.NeedPremultiplyAlpha(bitmapSource))