341 references to Utility
ReachFramework (341)
AlphaFlattener\BrushProxy.cs (147)
230if (! 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)) 861return BlendColorWithBrush(_opacityOnly, Utility.Scale(sA.Color, _opacity), brushB, false); 868return BlendColorWithBrush(brushB._opacityOnly, Utility.Scale(sB.Color, brushB._opacity), this, true); 1031else if (!Utility.IsOpaque(_opacity)) 1034if (_opacity != Utility.GetOpacity(_brush)) 1097if (Utility.IsTransparent(_opacity)) 1117if (isOpaque && (_brush.Transform == null || Utility.IsScaleTranslate(_brush.Transform.Value))) 1126Utility.AreClose(linearBrush.StartPoint.X, linearBrush.EndPoint.X) ? 1 : size.Width, 1127Utility.AreClose(linearBrush.StartPoint.Y, linearBrush.EndPoint.Y) ? 1 : size.Height 1142cost *= Utility.TransparencyCostFactor; 1203if (!Utility.AreClose(bounds, viewport)) 1255Matrix viewboxToViewportTransformHint = Utility.CreateViewboxToViewportTransform(drawingBrush); 1336DrawingBrush newBrush = Utility.CreateNonInheritingDrawingBrush(drawing); 1413DrawingBrush brush = Utility.CreateNonInheritingDrawingBrush(drawing); 1448if (!Utility.IsTransparent(_beforeDrawing.ScA)) 1465if (!Utility.IsTransparent(_afterDrawing.ScA)) 1503if (!Utility.IsTransparent(_beforeDrawing.ScA) || !Utility.IsTransparent(_afterDrawing.ScA) || _brushList == null) 1519if (!Utility.IsTransparent(_beforeDrawing.ScA)) 1530if (_brushList == null && !Utility.IsTransparent(_brush.Opacity)) 1537if (!Utility.IsOpaque(inheritedOpacity)) 1547if (!Utility.IsOpaque(_opacity)) 1584if (!Utility.IsTransparent(_afterDrawing.ScA)) 1608if (!Utility.IsOpaque(p.Opacity)) 1634Geometry shape = Utility.TransformGeometry(p.GetShapeGeometry(), transform); 1636shape = Utility.Exclude(viewbox, shape, p.Transform); 1673if (Utility.IsTransparent(p.Opacity)) 1703Geometry shape = Utility.TransformGeometry(p.GetShapeGeometry(), drawingToWorldTransformHint); 1707shape = Utility.Intersect(viewbox, shape, Matrix.Identity, out empty); 1714if (!Utility.IsRenderVisible(shape.Bounds)) 1737Rect content = Utility.GetTileContentBounds(brush); 1742Matrix viewboxToViewportTransform = Utility.CreateViewboxToViewportTransform(brush); 1843b._afterDrawing = Utility.BlendColor(b._afterDrawing, color); 1847b._beforeDrawing = Utility.BlendColor(color, b._beforeDrawing); 1866result = Utility.Scale(color, Utility.NormalizeOpacity(stopColor.ScA) * _opacity); 1872result = Utility.BlendColor(Utility.Scale(stopColor, _opacity), color); 1876result = Utility.BlendColor(color, Utility.Scale(stopColor, _opacity)); 1990bool colorOpaque = Utility.IsOpaque(color.ScA); 2047Color prevColor = Utility.NormalizeColor(prevStop.Color); 2059currentColor = Utility.NormalizeColor(currentStop.Color); 2215if (Utility.IsScaleTranslate(B2A)) 2252if (Utility.IsMultipleOf(viewportA.Width, width) && 2253Utility.IsMultipleOf(viewportA.Height, height)) 2281if (Utility.IsZero(start.X - end.X)) 2285if (Utility.IsMultipleOf(viewportA.Height, height)) 2290else if (Utility.IsZero(start.Y - end.Y)) 2294if (Utility.IsMultipleOf(viewportA.Width, width)) 2409if ((gsA == null) || (gsB == null) || !Utility.IsZero(gsA.Offset - gsB.Offset)) 2428gs.Color = Utility.Scale(gsA.Color, gsB.Color.ScA); 2432gs.Color = Utility.Scale(gsB.Color, gsA.Color.ScA); 2436gs.Color = Utility.BlendColor(gsA.Color, gsB.Color); 2484if (!Utility.IsZero(dxA - dxB) || !Utility.IsZero(dyA - dyB)) 2514if ((Utility.IsZero(dX) || Utility.IsMultipleOf(dX, dxA * factor)) && 2515(Utility.IsZero(dY) || Utility.IsMultipleOf(dY, dyA * factor))) 2561if (!Utility.AreClose(rbA.Center * rbA.Transform.Value, rbB.Center * rbB.Transform.Value)) 2567if (!Utility.AreClose(rbA.GradientOrigin * rbA.Transform.Value, rbB.GradientOrigin * rbB.Transform.Value)) 2573if (Utility.AreClose(new Vector(Math.Abs(rbA.RadiusX), Math.Abs(rbA.RadiusY)) * rbA.Transform.Value, 2607if ((sb != null) && Utility.IsOpaque(sb.Opacity)) 2624if ((sb != null) && Utility.IsOpaque(sb.Opacity)) 2715if (Utility.IsTransparent(color.ScA)) 2816if (Utility.IsTransparent(brush.Opacity)) 2821if (brush.Transform != null && !Utility.IsValid(brush.Transform.Value)) 2831if (Utility.IsTransparent(solidBrush.Color.ScA)) 2854if (!Utility.IsValid(stop.Offset)) 2865if (!Utility.IsRenderVisible(linearBrush.StartPoint) || !Utility.IsRenderVisible(linearBrush.EndPoint)) 2878if (!Utility.IsRenderVisible(radialBrush.Center) || 2879!Utility.IsRenderVisible(radialBrush.GradientOrigin) || 2880!Utility.IsRenderVisible(radialBrush.RadiusX) || 2881!Utility.IsRenderVisible(radialBrush.RadiusY)) 2898if (! Utility.IsRenderVisible(tileBrush.Viewport) || 2899! Utility.IsValidViewbox(tileBrush.Viewbox, tileBrush.Stretch != Stretch.None) 2905Rect contentBounds = Utility.GetTileContentBounds(tileBrush); 2907if (!Utility.IsRenderVisible(contentBounds)) 2936double opacity = Utility.NormalizeOpacity(brush.Opacity); 2954if (!Utility.IsTransparent(gs.Color.ScA)) 3037Transform visualTransform = Utility.GetVisualTransform(visual); 3049DrawingBrush drawingBrush = Utility.CreateNonInheritingDrawingBrush(drawing); 3104Matrix visualToWorldTransformHint = Utility.CreateViewboxToViewportTransform(vb, bounds); 3132Transform visualTransform = Utility.GetVisualTransform(vb.Visual); 3144DrawingBrush drawingBrush = Utility.CreateNonInheritingDrawingBrush(drawing); 3181DrawingBrush db = Utility.CreateNonInheritingDrawingBrush(drawingImage.Drawing); 3226if (Utility.IsOpaque(colorA.ScA)) 3260if (Utility.IsOpaque(colorA.ScA)) 3288Utility.Scale( 3290Utility.NormalizeOpacity(sB.Color.ScA) * brushB._opacity 3297Utility.BlendColor( 3299Utility.Scale( 3369Debug.Assert(Utility.NormalizeOpacity(value) == value, "BrushProxy.Opacity must always be normalized"); 3643Utility.IsValid(a) && Utility.IsValid(r) && Utility.IsValid(g) && Utility.IsValid(b), 3657c = Utility.NormalizeColor(c); 3685return Color.FromArgb(Utility.OpacityToByte(m_a), Utility.ColorToByte(m_r), Utility.ColorToByte(m_g), Utility.ColorToByte(m_b)); 3709Debug.Assert(Utility.IsValid(opacity), "Opacity comes from BrushProxy, should be valid"); 3910if ((Utility.AreClose(offset, _offset[k])) && 3911Utility.AreClose(offset, _offset[k + 1])) 4000if (!Utility.IsRenderVisible(brush.StartPoint) || 4001!Utility.IsRenderVisible(brush.EndPoint) || 4002!Utility.IsValid(brushToWorldTransform)) 4023Geometry xgeometry = Utility.TransformGeometry(geometry, worldToXTransform); 4036double xToWorldScale = Utility.GetScale(brushToWorldTransform); 4134if (Utility.IsZero(gradientVector.X) && Utility.IsZero(gradientVector.Y)) 4178Debug.Assert(Utility.IsValid(opacity), "Opacity comes from BrushProxy, should be valid"); 4193if (!Utility.IsRenderVisible(_x0) || 4194!Utility.IsRenderVisible(_y0) || 4195!Utility.IsRenderVisible(_u0) || 4196!Utility.IsRenderVisible(_v0) || 4197!Utility.IsRenderVisible(_rx) || 4198!Utility.IsRenderVisible(_ry)) 4210shape = Utility.TransformGeometry(shape, mat); 4293bool simple = Utility.IsScaleTranslate(_trans);
AlphaFlattener\DrawingContext.cs (15)
83clip = Utility.Intersect(_clip, Utility.TransformGeometry(clip, _transform), Matrix.Identity, out empty); 104bool uniform = Utility.HasUniformScale(brushTrans, out scale); 115geometry = Utility.InverseTransformGeometry(geometry, brushTrans); 117geometry = Utility.TransformGeometry(geometry, brushTrans); 146clip = Utility.Intersect(_clip, Utility.TransformGeometry(clip, _transform), Matrix.Identity, out empty); 170clip = Utility.Intersect(_clip, Utility.TransformGeometry(clip, _transform), Matrix.Identity, out empty); 284linear.Opacity = saveOpacity * Utility.NormalizeOpacity(color.ScA); 409radial.Opacity = saveOpacity * Utility.NormalizeOpacity(color.ScA); 607Matrix mat = Utility.CreateMappingTransform(bounds, width, height); 743geometry = Utility.Intersect(geometry, clip, Matrix.Identity, out empty); 840if (!Utility.IsRenderVisible(clip.Bounds)) 855Geometry imageClip = Utility.TransformGeometry(clip, imageTransform);
AlphaFlattener\Flattener.cs (11)
87Debug.Assert(Utility.IsValid(opacity) && Utility.IsValid(tree.Opacity), "Invalid opacity encountered, should've been normalized in conversion to Primitive"); 118if (Utility.IsTransparent(opacity)) 125Geometry transclip = Utility.TransformGeometry(tree.Clip, transform); 129clip = Utility.Intersect(clip, transclip, Matrix.Identity, out empty); 146(Utility.IsOpaque(opacity) && (opacityMask == null))) // For opaque subtree, just push trasform/clip into it. 203(!gp.IsOpaque || !Utility.IsOpaque(opacity))) 234Geometry transclip = Utility.TransformGeometry(tree.Clip, transform); 238tree.Clip = Utility.Intersect(transclip, clip, Matrix.Identity, out empty); 242empty = Utility.IsEmpty(tree.Clip, Matrix.Identity); 1144g = Utility.TransformGeometry(g, p.Transform);
AlphaFlattener\ImageProxy.cs (12)
206int op = Utility.OpacityToByte(opacity); 239Utility.BlendUnderColor(_pixels, _pixelWidth * _pixelHeight, color, opacity, opacityOnly); 244if (opacityOnly || !Utility.IsOpaque(opacity) || !IsOpaque()) 249Utility.BlendOverColor(_pixels, _pixelWidth * _pixelHeight, color, opacity, opacityOnly); 265BlendUnderColor(Utility.Scale(sb.Color, brush.Opacity), 1, opacityOnly); 273Utility.BlendPixels(_pixels, opacityOnly, brushPixels, brush.OpacityOnly, _pixelWidth * _pixelHeight, _pixels); 306BlendOverColor(Utility.Scale(sb.Color, brush.Opacity), 1.0, opacityOnly); 314Utility.BlendPixels(brushPixels, brush.OpacityOnly, _pixels, opacityOnly, _pixelWidth * _pixelHeight, _pixels); 337if (! Utility.IsOpaque(c.ScA)) 453if (Utility.IsZero(dpiScaleX)) 455if (Utility.IsZero(dpiScaleY)) 501pixels = Utility.ClipPixels(_pixels, _pixelWidth, _pixelHeight, x0, y0, width, height);
AlphaFlattener\MetroDevice.cs (7)
146if (Utility.IsTransparent(_opacity) || ((brush == null) && (pen == null || pen.Brush == null)) || (geometry == null)) 298opacity = Utility.NormalizeOpacity(opacity); 300if (!Utility.IsValid(transform)) 318_clip = Utility.Intersect(_clip, clip, Matrix.Identity, out empty); 342_clip = Utility.TransformGeometry(_clip, invertTransform); // transform inherited clip to this level 347c.Clip = Utility.Intersect(clip, _clip, Matrix.Identity, out empty); // Combined with inherited attributes 359if (Utility.ExtractOpacityMaskOpacity(opacityMask, out op, maskBounds))
AlphaFlattener\Optimizer.cs (3)
52Matrix mat = Utility.CreateMappingTransform(m_bounds, width, height); 76Geometry geometry = Utility.Intersect(primitive.GetShapeGeometry(), primitive.Clip, Matrix.Identity, out empty); 329complexity = Utility.GetGeometryPointCount(geo);
AlphaFlattener\Primitive.cs (57)
169shape = Utility.Intersect(shape, Clip, Matrix.Identity, out empty); 192if (!Utility.IsValid(rect)) 209if (Utility.IsTransparent(Opacity)) 219if (!Utility.IsOpaque(Opacity)) 221factor = Utility.TransparencyCostFactor; 261Debug.Assert(Utility.NormalizeOpacity(value) == value, "Opacity should be normalized during tree walking"); 316if (d == null || !Utility.IsRenderVisible(d.Bounds)) 417DrawingBrush db = Utility.CreateNonInheritingDrawingBrush(di.Drawing); 455if (Utility.IsRenderVisible(dg)) 492BitmapSource bitmap = Utility.RasterizeDrawing( 520primitive.Opacity = Utility.NormalizeOpacity(dg.Opacity); 573if (!Utility.IsOpaque(opacity)) 601Opacity *= Utility.NormalizeOpacity(sb.Color.ScA) * OpacityMask.Opacity; 798if ((drawingBrush == null) || ! Utility.IsIdentity(drawingBrush.Transform)) 840brushGeometry = Utility.TransformGeometry(worldGeometry, worldToBrushTransform); 875Matrix viewboxToViewportTransform = Utility.CreateViewboxToViewportTransform( 885gdiRasterizeCost *= Utility.TransparencyCostFactor; 930viewboxToViewportTransform = Utility.CreateViewboxToViewportTransform( 1051double scale = Utility.GetScale(Transform); 1086if (!Utility.IsOpaque(Opacity) || (OpacityMask != null)) 1129Geometry = Utility.Intersect(Geometry, Clip, Matrix.Identity, out empty); 1164Geometry g = Utility.TransformGeometry(WidenGeometry, Transform); 1177Geometry = Utility.Exclude(Geometry, Utility.InverseTransformGeometry(g, Transform), Transform); 1258if (!Utility.IsOpaque(Opacity)) 1281if (Utility.IsTransparent(Opacity)) 1319if (Utility.HasUniformScale(Transform, out scale)) 1331Geometry = Utility.TransformGeometry(Geometry, Transform); 1380Rect content = Utility.GetTileContentBounds(tb); 1391Matrix viewboxTransform = Utility.CreateViewboxToViewportTransform(tb); 1395Clip = Utility.Intersect(Clip, Geometry, Matrix.Identity, out empty); 1409viewportGeometry.Transform = 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)) 1449contentGeometry.Transform = Utility.MultiplyTransform(tb.Transform, new MatrixTransform(Transform)); 1451Clip = Utility.Intersect(Clip, contentGeometry, Matrix.Identity, out empty); 1480geometryClip = Utility.TransformGeometry(geometryClip, inverseTransform); 1484Geometry = Utility.Intersect(Geometry, geometryClip, Matrix.Identity, out empty); 1512double realOpacity = Utility.NormalizeOpacity(realBrush.Opacity); 1531double realOpacity = Utility.NormalizeOpacity(realBrush.Opacity); 1545if (Utility.IsOpaque(opacity) && (opacityMask == null)) 1591Geometry g = Utility.TransformGeometry(WidenGeometry, Transform); 1689Geometry g = Utility.TransformGeometry(WidenGeometry, Transform); 1704if (Utility.Covers(g, _bounds)) 1715Clip = Utility.Exclude(Clip, g, Matrix.Identity); 1751bounds = Utility.TransformRect(bounds, Transform); 1829return Utility.TransformGeometry(new RectangleGeometry(DstRect), Transform); 1838Clip = Utility.TransformGeometry(new RectangleGeometry(DstRect), Transform); 1841Clip = Utility.Exclude(Clip, g, Matrix.Identity); 1911if (Utility.IsTransparent(Opacity)) 1926Geometry dest = Utility.TransformGeometry(new RectangleGeometry(DstRect), Transform); 1928if (Utility.Covers(Clip, dest)) // If dest is inside clipping region, ignore clipping 1958return Utility.TransformRect(DstRect, Transform); 2069if (Utility.IsTransparent(Opacity)) 2111return Utility.TransformRect(bounds, Transform); 2201if (!Utility.FullyCovers(primitive.Clip, pshape)) 2207return Utility.FullyCovers(primitive.GetShapeGeometry(), pshape);
AlphaFlattener\PrimitiveList.cs (3)
256bool skip = !Utility.IsRenderVisible(info.bounds) || Utility.Disjoint(p.Clip, info.bounds); 272if ((p.Clip != null) && Utility.IsRectangle(p.Clip))
AlphaFlattener\PrimitiveRenderer.cs (10)
33bounds = Utility.TransformGeometry(new RectangleGeometry(dest), trans); 121cur = Utility.TransformGeometry(cur, trans); 260Geometry diff = Utility.Exclude(bounds, topBounds, trans); 301clip = Utility.Intersect(clip, bounds, Matrix.Identity, out empty); 360inter = Utility.Intersect(cur, topBounds, Matrix.Identity, out empty); 417Geometry diff = Utility.Exclude(cur, topBounds, Matrix.Identity); 470Geometry clip = Utility.Intersect(inter, Utility.TransformGeometry(new RectangleGeometry(ip.DstRect), ip.Transform), ip.Transform, out empty); 475Geometry clipImageSpace = Utility.TransformGeometry(clip, ReverseMap(ip.Transform, ip.DstRect, imageWidth, imageHeight)); 529Geometry geo = Utility.Intersect(cur, _clip, Matrix.Identity, out empty);
AlphaFlattener\Utility.cs (16)
1080return Utility.NormalizeOpacity(opacity) > OpaqueEnough; 1089return Utility.NormalizeOpacity(opacity) < AlmostTransparent; 1105return Utility.IsOpaque(sb.Color.ScA); 1186color = Utility.NormalizeColor(color); 1187opacity = 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)
81Debug.Assert(Utility.IsValid(opacity), "Invalid opacity should clip subtree"); 117clip = Utility.TransformGeometry(clip, Transform); 120clip = Utility.Intersect(clip, Clip, Matrix.Identity, out empty); 366if (!Utility.IsRenderVisible(bounds)) 375clip = Utility.TransformGeometry(clip, worldToVisualTransform); 386if (!Utility.IsRenderVisible(bounds)) 424bitmap = Utility.RasterizeVisual( 925opacity = Utility.NormalizeOpacity(opacity); 941if (!Utility.IsOpaque(opacity))
Serialization\VisualSerializer.cs (36)
341Color color = Utility.Scale(solidBrush.Color, solidBrush.Opacity); 439Rect 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)
114if (Microsoft.Internal.AlphaFlattener.Utility.NeedPremultiplyAlpha(value as BitmapSource)) 389if (Utility.IsTransparent(dg.Opacity)) 394if ((dg.Transform != null) || (dg.ClipGeometry != null) || (!Utility.IsOne(dg.Opacity))) 449Transform trans = Utility.GetVisualTransform(visual); 456if (trans != null && !Utility.IsValid(trans.Value)) 462if (!Utility.IsRenderVisible(bounds)) 468if ((clip != null) && !Utility.IsRenderVisible(clip.Bounds)) 476if (effect == null && (Utility.IsTransparent(opacity) || BrushProxy.IsEmpty(mask))) 483if ((mask != null) && Utility.IsBrushOpaque(mask)) 552clip = Utility.TransformGeometry(clip, clipToWorldSpace); 556clip = Utility.Intersect(inheritedClipping, clip, Matrix.Identity, out empty); 665if (d == null || !Utility.IsRenderVisible(d.Bounds)) 707if (Utility.IsRenderVisible(dg)) 722Utility.NormalizeOpacity(dg.Opacity),
Serialization\XpsImageSerializationService.cs (1)
82if (Microsoft.Internal.AlphaFlattener.Utility.NeedPremultiplyAlpha(bitmapSource))