341 references to Utility
ReachFramework (341)
AlphaFlattener\BrushProxy.cs (147)
234if (! Utility.AreClose(ratio, 1.0)) 371_opacity = Utility.NormalizeOpacity(brush.Opacity); 415if (! (_brush is SolidColorBrush) && ! Utility.IsIdentity(_brush.RelativeTransform)) 420Matrix mat = Utility.MergeTransform(_brush.Transform, _brush.RelativeTransform, bounds); 441Rect viewport = Utility.GetTileAbsoluteViewport(tb, bounds); 443if (!Utility.IsRenderVisible(viewport)) 465Rect viewbox = Utility.GetTileAbsoluteViewbox(tb); 467if (!Utility.IsValidViewbox(viewbox, tb.Stretch != Stretch.None)) 492lb.StartPoint = Utility.MapPoint(bounds, lb.StartPoint); 493lb.EndPoint = Utility.MapPoint(bounds, lb.EndPoint); 513rb.Center = Utility.MapPoint(bounds, rb.Center); 514rb.GradientOrigin = Utility.MapPoint(bounds, rb.GradientOrigin); 565_opacity *= Utility.NormalizeOpacity(opacity); 603if (!Utility.IsOpaque(_opacity)) 612return Utility.IsOpaque(y.Color.ScA); 621if (!Utility.IsOpaque(gs.Color.ScA)) 672Debug.Assert(Utility.IsRenderVisible(vb), "TileBrush.Viewbox area must be positive"); 701double opacity = _opacity * Utility.NormalizeOpacity(y.Color.ScA); 703return Utility.IsTransparent(opacity); 712double opacity = _opacity * Utility.NormalizeOpacity(gs.Color.ScA); 714if (!Utility.IsTransparent(opacity)) 725if (Utility.IsTransparent(_opacity)) 739Debug.Assert(Utility.IsRenderVisible(vb), "TileBrush.Viewbox must be visible"); 743Matrix viewboxToViewportTransformHint = Utility.CreateViewboxToViewportTransform(db); 753if (Utility.IsTransparent(_opacity)) 865return BlendColorWithBrush(_opacityOnly, Utility.Scale(sA.Color, _opacity), brushB, false); 872return BlendColorWithBrush(brushB._opacityOnly, Utility.Scale(sB.Color, brushB._opacity), this, true); 1035else if (!Utility.IsOpaque(_opacity)) 1038if (_opacity != Utility.GetOpacity(_brush)) 1101if (Utility.IsTransparent(_opacity)) 1121if (isOpaque && (_brush.Transform == null || Utility.IsScaleTranslate(_brush.Transform.Value))) 1130Utility.AreClose(linearBrush.StartPoint.X, linearBrush.EndPoint.X) ? 1 : size.Width, 1131Utility.AreClose(linearBrush.StartPoint.Y, linearBrush.EndPoint.Y) ? 1 : size.Height 1146cost *= Utility.TransparencyCostFactor; 1207if (!Utility.AreClose(bounds, viewport)) 1259Matrix viewboxToViewportTransformHint = Utility.CreateViewboxToViewportTransform(drawingBrush); 1340DrawingBrush newBrush = Utility.CreateNonInheritingDrawingBrush(drawing); 1417DrawingBrush brush = Utility.CreateNonInheritingDrawingBrush(drawing); 1452if (!Utility.IsTransparent(_beforeDrawing.ScA)) 1469if (!Utility.IsTransparent(_afterDrawing.ScA)) 1507if (!Utility.IsTransparent(_beforeDrawing.ScA) || !Utility.IsTransparent(_afterDrawing.ScA) || _brushList == null) 1523if (!Utility.IsTransparent(_beforeDrawing.ScA)) 1534if (_brushList == null && !Utility.IsTransparent(_brush.Opacity)) 1541if (!Utility.IsOpaque(inheritedOpacity)) 1551if (!Utility.IsOpaque(_opacity)) 1588if (!Utility.IsTransparent(_afterDrawing.ScA)) 1612if (!Utility.IsOpaque(p.Opacity)) 1638Geometry shape = Utility.TransformGeometry(p.GetShapeGeometry(), transform); 1640shape = Utility.Exclude(viewbox, shape, p.Transform); 1677if (Utility.IsTransparent(p.Opacity)) 1707Geometry shape = Utility.TransformGeometry(p.GetShapeGeometry(), drawingToWorldTransformHint); 1711shape = Utility.Intersect(viewbox, shape, Matrix.Identity, out empty); 1718if (!Utility.IsRenderVisible(shape.Bounds)) 1741Rect content = Utility.GetTileContentBounds(brush); 1746Matrix viewboxToViewportTransform = Utility.CreateViewboxToViewportTransform(brush); 1847b._afterDrawing = Utility.BlendColor(b._afterDrawing, color); 1851b._beforeDrawing = Utility.BlendColor(color, b._beforeDrawing); 1870result = Utility.Scale(color, Utility.NormalizeOpacity(stopColor.ScA) * _opacity); 1876result = Utility.BlendColor(Utility.Scale(stopColor, _opacity), color); 1880result = Utility.BlendColor(color, Utility.Scale(stopColor, _opacity)); 1994bool colorOpaque = Utility.IsOpaque(color.ScA); 2051Color prevColor = Utility.NormalizeColor(prevStop.Color); 2063currentColor = Utility.NormalizeColor(currentStop.Color); 2219if (Utility.IsScaleTranslate(B2A)) 2256if (Utility.IsMultipleOf(viewportA.Width, width) && 2257Utility.IsMultipleOf(viewportA.Height, height)) 2285if (Utility.IsZero(start.X - end.X)) 2289if (Utility.IsMultipleOf(viewportA.Height, height)) 2294else if (Utility.IsZero(start.Y - end.Y)) 2298if (Utility.IsMultipleOf(viewportA.Width, width)) 2413if ((gsA == null) || (gsB == null) || !Utility.IsZero(gsA.Offset - gsB.Offset)) 2432gs.Color = Utility.Scale(gsA.Color, gsB.Color.ScA); 2436gs.Color = Utility.Scale(gsB.Color, gsA.Color.ScA); 2440gs.Color = Utility.BlendColor(gsA.Color, gsB.Color); 2488if (!Utility.IsZero(dxA - dxB) || !Utility.IsZero(dyA - dyB)) 2518if ((Utility.IsZero(dX) || Utility.IsMultipleOf(dX, dxA * factor)) && 2519(Utility.IsZero(dY) || Utility.IsMultipleOf(dY, dyA * factor))) 2565if (!Utility.AreClose(rbA.Center * rbA.Transform.Value, rbB.Center * rbB.Transform.Value)) 2571if (!Utility.AreClose(rbA.GradientOrigin * rbA.Transform.Value, rbB.GradientOrigin * rbB.Transform.Value)) 2577if (Utility.AreClose(new Vector(Math.Abs(rbA.RadiusX), Math.Abs(rbA.RadiusY)) * rbA.Transform.Value, 2611if ((sb != null) && Utility.IsOpaque(sb.Opacity)) 2628if ((sb != null) && Utility.IsOpaque(sb.Opacity)) 2719if (Utility.IsTransparent(color.ScA)) 2820if (Utility.IsTransparent(brush.Opacity)) 2825if (brush.Transform != null && !Utility.IsValid(brush.Transform.Value)) 2835if (Utility.IsTransparent(solidBrush.Color.ScA)) 2858if (!Utility.IsValid(stop.Offset)) 2869if (!Utility.IsRenderVisible(linearBrush.StartPoint) || !Utility.IsRenderVisible(linearBrush.EndPoint)) 2882if (!Utility.IsRenderVisible(radialBrush.Center) || 2883!Utility.IsRenderVisible(radialBrush.GradientOrigin) || 2884!Utility.IsRenderVisible(radialBrush.RadiusX) || 2885!Utility.IsRenderVisible(radialBrush.RadiusY)) 2902if (! Utility.IsRenderVisible(tileBrush.Viewport) || 2903! Utility.IsValidViewbox(tileBrush.Viewbox, tileBrush.Stretch != Stretch.None) 2909Rect contentBounds = Utility.GetTileContentBounds(tileBrush); 2911if (!Utility.IsRenderVisible(contentBounds)) 2940double opacity = Utility.NormalizeOpacity(brush.Opacity); 2958if (!Utility.IsTransparent(gs.Color.ScA)) 3041Transform visualTransform = Utility.GetVisualTransform(visual); 3053DrawingBrush drawingBrush = Utility.CreateNonInheritingDrawingBrush(drawing); 3108Matrix visualToWorldTransformHint = Utility.CreateViewboxToViewportTransform(vb, bounds); 3136Transform visualTransform = Utility.GetVisualTransform(vb.Visual); 3148DrawingBrush drawingBrush = Utility.CreateNonInheritingDrawingBrush(drawing); 3185DrawingBrush db = Utility.CreateNonInheritingDrawingBrush(drawingImage.Drawing); 3230if (Utility.IsOpaque(colorA.ScA)) 3264if (Utility.IsOpaque(colorA.ScA)) 3292Utility.Scale( 3294Utility.NormalizeOpacity(sB.Color.ScA) * brushB._opacity 3301Utility.BlendColor( 3303Utility.Scale( 3373Debug.Assert(Utility.NormalizeOpacity(value) == value, "BrushProxy.Opacity must always be normalized"); 3647Utility.IsValid(a) && Utility.IsValid(r) && Utility.IsValid(g) && Utility.IsValid(b), 3661c = Utility.NormalizeColor(c); 3689return Color.FromArgb(Utility.OpacityToByte(m_a), Utility.ColorToByte(m_r), Utility.ColorToByte(m_g), Utility.ColorToByte(m_b)); 3713Debug.Assert(Utility.IsValid(opacity), "Opacity comes from BrushProxy, should be valid"); 3914if ((Utility.AreClose(offset, _offset[k])) && 3915Utility.AreClose(offset, _offset[k + 1])) 4004if (!Utility.IsRenderVisible(brush.StartPoint) || 4005!Utility.IsRenderVisible(brush.EndPoint) || 4006!Utility.IsValid(brushToWorldTransform)) 4027Geometry xgeometry = Utility.TransformGeometry(geometry, worldToXTransform); 4040double xToWorldScale = Utility.GetScale(brushToWorldTransform); 4138if (Utility.IsZero(gradientVector.X) && Utility.IsZero(gradientVector.Y)) 4182Debug.Assert(Utility.IsValid(opacity), "Opacity comes from BrushProxy, should be valid"); 4197if (!Utility.IsRenderVisible(_x0) || 4198!Utility.IsRenderVisible(_y0) || 4199!Utility.IsRenderVisible(_u0) || 4200!Utility.IsRenderVisible(_v0) || 4201!Utility.IsRenderVisible(_rx) || 4202!Utility.IsRenderVisible(_ry)) 4214shape = Utility.TransformGeometry(shape, mat); 4297bool simple = Utility.IsScaleTranslate(_trans);
AlphaFlattener\DrawingContext.cs (15)
87clip = Utility.Intersect(_clip, Utility.TransformGeometry(clip, _transform), Matrix.Identity, out empty); 108bool uniform = Utility.HasUniformScale(brushTrans, out scale); 119geometry = Utility.InverseTransformGeometry(geometry, brushTrans); 121geometry = Utility.TransformGeometry(geometry, brushTrans); 150clip = Utility.Intersect(_clip, Utility.TransformGeometry(clip, _transform), Matrix.Identity, out empty); 174clip = Utility.Intersect(_clip, Utility.TransformGeometry(clip, _transform), Matrix.Identity, out empty); 288linear.Opacity = saveOpacity * Utility.NormalizeOpacity(color.ScA); 413radial.Opacity = saveOpacity * Utility.NormalizeOpacity(color.ScA); 611Matrix mat = Utility.CreateMappingTransform(bounds, width, height); 747geometry = Utility.Intersect(geometry, clip, Matrix.Identity, out empty); 844if (!Utility.IsRenderVisible(clip.Bounds)) 859Geometry imageClip = Utility.TransformGeometry(clip, imageTransform);
AlphaFlattener\Flattener.cs (11)
92Debug.Assert(Utility.IsValid(opacity) && Utility.IsValid(tree.Opacity), "Invalid opacity encountered, should've been normalized in conversion to Primitive"); 123if (Utility.IsTransparent(opacity)) 130Geometry transclip = Utility.TransformGeometry(tree.Clip, transform); 134clip = Utility.Intersect(clip, transclip, Matrix.Identity, out empty); 151(Utility.IsOpaque(opacity) && (opacityMask == null))) // For opaque subtree, just push trasform/clip into it. 208(!gp.IsOpaque || !Utility.IsOpaque(opacity))) 239Geometry transclip = Utility.TransformGeometry(tree.Clip, transform); 243tree.Clip = Utility.Intersect(transclip, clip, Matrix.Identity, out empty); 247empty = Utility.IsEmpty(tree.Clip, Matrix.Identity); 1149g = Utility.TransformGeometry(g, p.Transform);
AlphaFlattener\ImageProxy.cs (12)
213int op = Utility.OpacityToByte(opacity); 246Utility.BlendUnderColor(_pixels, _pixelWidth * _pixelHeight, color, opacity, opacityOnly); 251if (opacityOnly || !Utility.IsOpaque(opacity) || !IsOpaque()) 256Utility.BlendOverColor(_pixels, _pixelWidth * _pixelHeight, color, opacity, opacityOnly); 272BlendUnderColor(Utility.Scale(sb.Color, brush.Opacity), 1, opacityOnly); 280Utility.BlendPixels(_pixels, opacityOnly, brushPixels, brush.OpacityOnly, _pixelWidth * _pixelHeight, _pixels); 313BlendOverColor(Utility.Scale(sb.Color, brush.Opacity), 1.0, opacityOnly); 321Utility.BlendPixels(brushPixels, brush.OpacityOnly, _pixels, opacityOnly, _pixelWidth * _pixelHeight, _pixels); 344if (! Utility.IsOpaque(c.ScA)) 460if (Utility.IsZero(dpiScaleX)) 462if (Utility.IsZero(dpiScaleY)) 508pixels = Utility.ClipPixels(_pixels, _pixelWidth, _pixelHeight, x0, y0, width, height);
AlphaFlattener\MetroDevice.cs (7)
152if (Utility.IsTransparent(_opacity) || ((brush == null) && (pen == null || pen.Brush == null)) || (geometry == null)) 304opacity = Utility.NormalizeOpacity(opacity); 306if (!Utility.IsValid(transform)) 324_clip = Utility.Intersect(_clip, clip, Matrix.Identity, out empty); 348_clip = Utility.TransformGeometry(_clip, invertTransform); // transform inherited clip to this level 353c.Clip = Utility.Intersect(clip, _clip, Matrix.Identity, out empty); // Combined with inherited attributes 365if (Utility.ExtractOpacityMaskOpacity(opacityMask, out op, maskBounds))
AlphaFlattener\Optimizer.cs (3)
56Matrix mat = Utility.CreateMappingTransform(m_bounds, width, height); 80Geometry geometry = Utility.Intersect(primitive.GetShapeGeometry(), primitive.Clip, Matrix.Identity, out empty); 333complexity = Utility.GetGeometryPointCount(geo);
AlphaFlattener\Primitive.cs (57)
174shape = Utility.Intersect(shape, Clip, Matrix.Identity, out empty); 197if (!Utility.IsValid(rect)) 214if (Utility.IsTransparent(Opacity)) 224if (!Utility.IsOpaque(Opacity)) 226factor = Utility.TransparencyCostFactor; 266Debug.Assert(Utility.NormalizeOpacity(value) == value, "Opacity should be normalized during tree walking"); 321if (d == null || !Utility.IsRenderVisible(d.Bounds)) 422DrawingBrush db = Utility.CreateNonInheritingDrawingBrush(di.Drawing); 460if (Utility.IsRenderVisible(dg)) 497BitmapSource bitmap = Utility.RasterizeDrawing( 525primitive.Opacity = Utility.NormalizeOpacity(dg.Opacity); 578if (!Utility.IsOpaque(opacity)) 606Opacity *= Utility.NormalizeOpacity(sb.Color.ScA) * OpacityMask.Opacity; 803if ((drawingBrush == null) || ! Utility.IsIdentity(drawingBrush.Transform)) 845brushGeometry = Utility.TransformGeometry(worldGeometry, worldToBrushTransform); 880Matrix viewboxToViewportTransform = Utility.CreateViewboxToViewportTransform( 890gdiRasterizeCost *= Utility.TransparencyCostFactor; 935viewboxToViewportTransform = Utility.CreateViewboxToViewportTransform( 1056double scale = Utility.GetScale(Transform); 1091if (!Utility.IsOpaque(Opacity) || (OpacityMask != null)) 1134Geometry = Utility.Intersect(Geometry, Clip, Matrix.Identity, out empty); 1169Geometry g = Utility.TransformGeometry(WidenGeometry, Transform); 1182Geometry = Utility.Exclude(Geometry, Utility.InverseTransformGeometry(g, Transform), Transform); 1263if (!Utility.IsOpaque(Opacity)) 1286if (Utility.IsTransparent(Opacity)) 1324if (Utility.HasUniformScale(Transform, out scale)) 1336Geometry = Utility.TransformGeometry(Geometry, Transform); 1385Rect content = Utility.GetTileContentBounds(tb); 1396Matrix viewboxTransform = Utility.CreateViewboxToViewportTransform(tb); 1400Clip = Utility.Intersect(Clip, Geometry, Matrix.Identity, out empty); 1414viewportGeometry.Transform = Utility.MultiplyTransform(tb.Transform, new MatrixTransform(Transform)); 1416Clip = Utility.Intersect(Clip, viewportGeometry, Matrix.Identity, out empty); 1434if (!empty && tb.Transform != null && !Utility.IsScaleTranslate(tb.Transform.Value)) 1454contentGeometry.Transform = Utility.MultiplyTransform(tb.Transform, new MatrixTransform(Transform)); 1456Clip = Utility.Intersect(Clip, contentGeometry, Matrix.Identity, out empty); 1485geometryClip = Utility.TransformGeometry(geometryClip, inverseTransform); 1489Geometry = Utility.Intersect(Geometry, geometryClip, Matrix.Identity, out empty); 1517double realOpacity = Utility.NormalizeOpacity(realBrush.Opacity); 1536double realOpacity = Utility.NormalizeOpacity(realBrush.Opacity); 1550if (Utility.IsOpaque(opacity) && (opacityMask == null)) 1596Geometry g = Utility.TransformGeometry(WidenGeometry, Transform); 1694Geometry g = Utility.TransformGeometry(WidenGeometry, Transform); 1709if (Utility.Covers(g, _bounds)) 1720Clip = Utility.Exclude(Clip, g, Matrix.Identity); 1756bounds = Utility.TransformRect(bounds, Transform); 1834return Utility.TransformGeometry(new RectangleGeometry(DstRect), Transform); 1843Clip = Utility.TransformGeometry(new RectangleGeometry(DstRect), Transform); 1846Clip = 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)
261bool skip = !Utility.IsRenderVisible(info.bounds) || Utility.Disjoint(p.Clip, info.bounds); 277if ((p.Clip != null) && Utility.IsRectangle(p.Clip))
AlphaFlattener\PrimitiveRenderer.cs (10)
37bounds = Utility.TransformGeometry(new RectangleGeometry(dest), trans); 125cur = Utility.TransformGeometry(cur, trans); 264Geometry diff = Utility.Exclude(bounds, topBounds, trans); 305clip = Utility.Intersect(clip, bounds, Matrix.Identity, out empty); 364inter = Utility.Intersect(cur, topBounds, Matrix.Identity, out empty); 421Geometry diff = Utility.Exclude(cur, topBounds, Matrix.Identity); 474Geometry clip = Utility.Intersect(inter, Utility.TransformGeometry(new RectangleGeometry(ip.DstRect), ip.Transform), ip.Transform, out empty); 479Geometry clipImageSpace = Utility.TransformGeometry(clip, ReverseMap(ip.Transform, ip.DstRect, imageWidth, imageHeight)); 533Geometry geo = Utility.Intersect(cur, _clip, Matrix.Identity, out empty);
AlphaFlattener\Utility.cs (16)
1091return Utility.NormalizeOpacity(opacity) > OpaqueEnough; 1100return Utility.NormalizeOpacity(opacity) < AlmostTransparent; 1116return Utility.IsOpaque(sb.Color.ScA); 1197color = Utility.NormalizeColor(color); 1198opacity = Utility.NormalizeOpacity(opacity); 1867if (!Utility.IsRenderVisible(visualBounds)) 2130if (Utility.IsTransparent(Utility.NormalizeOpacity(drawing.Opacity))) 2136if (drawing.ClipGeometry != null && !Utility.IsRenderVisible(drawing.ClipGeometry.Bounds)) 2139if (drawing.Transform != null && !Utility.IsValid(drawing.Transform.Value)) 2529(Utility.AreClose(point.X, _rect.Left) || Utility.AreClose(point.X, _rect.Right)) && 2530(Utility.AreClose(point.Y, _rect.Top) || Utility.AreClose(point.Y, _rect.Bottom)); 2636bool xzero = Utility.IsZero(vector.X); 2637bool yzero = Utility.IsZero(vector.Y);
Serialization\DrawingContextFlattener.cs (9)
91Debug.Assert(Utility.IsValid(opacity), "Invalid opacity should clip subtree"); 127clip = Utility.TransformGeometry(clip, Transform); 130clip = Utility.Intersect(clip, Clip, Matrix.Identity, out empty); 376if (!Utility.IsRenderVisible(bounds)) 385clip = Utility.TransformGeometry(clip, worldToVisualTransform); 396if (!Utility.IsRenderVisible(bounds)) 434bitmap = Utility.RasterizeVisual( 935opacity = Utility.NormalizeOpacity(opacity); 951if (!Utility.IsOpaque(opacity))
Serialization\VisualSerializer.cs (36)
349Color color = Utility.Scale(solidBrush.Color, solidBrush.Opacity); 447Rect vb = Utility.GetTileAbsoluteViewbox(brush); 722WriteAttr("StartPoint", Utility.MapPoint(bounds, lb.StartPoint)); 723WriteAttr("EndPoint", Utility.MapPoint(bounds, lb.EndPoint)); 756WriteAttr("Center", Utility.MapPoint(bounds, rb.Center)); 759WriteAttr("GradientOrigin", Utility.MapPoint(bounds, rb.GradientOrigin)); 785Matrix trans = Utility.MergeTransform(db.Transform, db.RelativeTransform, bounds); 790Matrix drawingToWorldTransform = Utility.CreateViewboxToViewportTransform(db, bounds); 979return Utility.IsZero(mat.M11 - mat.M22) && 980Utility.IsZero(mat.M12) && 981Utility.IsZero(mat.M21); 988if (!Utility.IsIdentity(mat)) 1202if ((path.Transform != null) && !Utility.IsIdentity(path.Transform)) 1375Matrix mat = Utility.MergeTransform(trans, relative, bounds); 1377if (!Utility.IsIdentity(mat)) 1385if (!Utility.IsIdentity(trans)) 1447pg = Utility.GetAsPathGeometry(geo); 1557if (!forStroke && !Utility.IsRenderVisible(pg.Bounds)) 1894if (!Utility.IsRenderVisible(bounds)) 1920bool isLineGeometry = Utility.IsLineSegment(geometry); 1965if (!Utility.IsIdentity(trans)) 1969if (Utility.IsOne(mat.M11) && 1970Utility.IsOne(mat.M22) && 1971Utility.IsZero(mat.M12) && 1972Utility.IsZero(mat.M21)) 2000BitmapSource bitmap = Utility.RasterizeDrawing( 2014Debug.Assert(Utility.IsScaleTranslate(bitmapToDrawingTransform)); 2085Uri uri = Utility.GetFontUri(glyphRun.GlyphTypeface); 2259opacity *= Utility.NormalizeOpacity(sb.Color.ScA) * Utility.NormalizeOpacity(opacityMask.Opacity); 2264if (!Utility.IsOne(opacity)) 2321if (!Utility.IsIdentity(transform)) 2329SetCoordinateFormat(Math.Min(Utility.GetScaleX(mat), Utility.GetScaleY(mat))); 2360bool noTrans = Utility.IsIdentity(transform); 2371Utility.IsOne(opacity) &&
Serialization\VisualTreeFlattener.cs (14)
121if (Microsoft.Internal.AlphaFlattener.Utility.NeedPremultiplyAlpha(value as BitmapSource)) 396if (Utility.IsTransparent(dg.Opacity)) 401if ((dg.Transform != null) || (dg.ClipGeometry != null) || (!Utility.IsOne(dg.Opacity))) 456Transform trans = Utility.GetVisualTransform(visual); 463if (trans != null && !Utility.IsValid(trans.Value)) 469if (!Utility.IsRenderVisible(bounds)) 475if ((clip != null) && !Utility.IsRenderVisible(clip.Bounds)) 483if (effect == null && (Utility.IsTransparent(opacity) || BrushProxy.IsEmpty(mask))) 490if ((mask != null) && Utility.IsBrushOpaque(mask)) 559clip = Utility.TransformGeometry(clip, clipToWorldSpace); 563clip = Utility.Intersect(inheritedClipping, clip, Matrix.Identity, out empty); 672if (d == null || !Utility.IsRenderVisible(d.Bounds)) 714if (Utility.IsRenderVisible(dg)) 729Utility.NormalizeOpacity(dg.Opacity),
Serialization\XpsImageSerializationService.cs (1)
85if (Microsoft.Internal.AlphaFlattener.Utility.NeedPremultiplyAlpha(bitmapSource))