13 writes to _brush
ReachFramework (13)
AlphaFlattener\BrushProxy.cs (13)
366_brush = brush; 413_brush = _brush.CloneCurrentValue(); 448_brush = tb; 472_brush = tb; 493_brush = lb; 517_brush = rb; 790_brush = _brush.CloneCurrentValue(); 1018_brush = BuildBrush(); 1033_brush = _brush.CloneCurrentValue(); 1174_brush = _brush.CloneCurrentValue(); 1348_brush = newBrush; 2527bp._brush = b; 2586bp._brush = b;
86 references to _brush
ReachFramework (86)
AlphaFlattener\BrushProxy.cs (86)
383if (_brush != null) 385str = str + _brush.GetType(); 411if (! (_brush is SolidColorBrush) && ! Utility.IsIdentity(_brush.RelativeTransform)) 413_brush = _brush.CloneCurrentValue(); 416Matrix mat = Utility.MergeTransform(_brush.Transform, _brush.RelativeTransform, bounds); 418_brush.Transform = new MatrixTransform(mat); 419_brush.RelativeTransform = Transform.Identity; 425if (_brush is TileBrush) 427TileBrush tb = _brush as TileBrush; 476if (_brush is LinearGradientBrush) 478LinearGradientBrush lb = _brush as LinearGradientBrush; 497if (_brush is RadialGradientBrush) 499RadialGradientBrush rb = _brush as RadialGradientBrush; 530if (_brush != null) 568if ((_opacityMask != null) && (_brush != null)) 604if (_brush is SolidColorBrush) 606SolidColorBrush y = _brush as SolidColorBrush; 611if (_brush is GradientBrush) 613GradientBrush y = _brush as GradientBrush; 626if (_brush is TileBrush) 628TileBrush tb = _brush as TileBrush; 645if (_brush is ImageBrush) 647ImageBrush ib = _brush as ImageBrush; 657if (_brush is DrawingBrush) 659DrawingBrush db = _brush as DrawingBrush; 673if (_brush != null) 675Debug.Assert(false, "IsOpaque(" + _brush.GetType() + ") not handled"); 693if (_brush is SolidColorBrush) 695SolidColorBrush y = _brush as SolidColorBrush; 702if (_brush is GradientBrush) 704GradientBrush y = _brush as GradientBrush; 719if (_brush is DrawingBrush) 726DrawingBrush db = _brush as DrawingBrush; 747if (_brush is ImageBrush) 754ImageBrush ib = _brush as ImageBrush; 769if (_brush != null) 771Debug.Assert(false, "IsTransparent not handled " + _brush.GetType()); 788if (!(_brush is SolidColorBrush)) 790_brush = _brush.CloneCurrentValue(); 794if (_brush.Transform != null) 796mat = _brush.Transform.Value; 801_brush.Transform = new MatrixTransform(mat); 854SolidColorBrush sA = _brush as SolidColorBrush; 869if (_brush is ImageBrush) 990return _brush; 1016(_brushList != null && _brush == null)) // combine brushlist into one brush 1031if (_opacity != Utility.GetOpacity(_brush)) 1033_brush = _brush.CloneCurrentValue(); 1035_brush.Opacity = _opacity; 1057else if (_brush is SolidColorBrush) 1061else if (_brush is GradientBrush) 1065else if (_brush is ImageBrush) 1069else if (_brush is DrawingBrush) 1109else if (!(_brush is SolidColorBrush)) 1114if (isOpaque && (_brush.Transform == null || Utility.IsScaleTranslate(_brush.Transform.Value))) 1116LinearGradientBrush linearBrush = _brush as LinearGradientBrush; 1152if (_brush != null) 1154SolidColorBrush scb = _brush as SolidColorBrush; 1172if (_brush != null) 1174_brush = _brush.CloneCurrentValue(); 1244DrawingBrush drawingBrush = _brush as DrawingBrush; 1285dc.DrawGeometry(_brush, null, geo); 1331DrawingBrush currentBrush = (DrawingBrush)_brush; 1381if (!(_brush is SolidColorBrush)) 1453context.PushOpacityMask(_brush); 1528if (_brushList == null && !Utility.IsTransparent(_brush.Opacity)) 1532inheritedOpacity /= _brush.Opacity; 1541context.DrawGeometry(_brush, null, geometry); 1762ImageBrush ib = _brush.CloneCurrentValue() as ImageBrush; 1968GradientBrush g = _brush as GradientBrush; 2130Debug.Assert(b._brush is SolidColorBrush, "SolidColorBrush expected"); 2312ImageBrush ib = _brush as ImageBrush; 2454LinearGradientBrush lbA = this._brush as LinearGradientBrush; 2455LinearGradientBrush lbB = brushB._brush as LinearGradientBrush; 2543RadialGradientBrush rbA = this._brush as RadialGradientBrush; 2544RadialGradientBrush rbB = brushB._brush as RadialGradientBrush; 3358return _brush; 3474else if (_brush != null) 3476if (_brush is SolidColorBrush) 3480else if (_brush is LinearGradientBrush) 3484else if (_brush is RadialGradientBrush) 3488else if (_brush is ImageBrush) 3492else if (_brush is DrawingBrush)