16 writes to Brush
ReachFramework (16)
AlphaFlattener\DrawingContext.cs (2)
131
geo.
Brush
= brush.ApplyTransformCopy(brushTrans);
183
Brush
= foreground
AlphaFlattener\Flattener.cs (4)
213
stroke.
Brush
= null;
262
gp.
Brush
= null;
521
gi.
Brush
= bi.BlendBrush(bj);
721
gp.
Brush
= blendedBrush;
AlphaFlattener\MetroDevice.cs (2)
214
g.
Brush
= BrushProxy.CreateBrush(brush, bounds);
282
g.
Brush
= BrushProxy.CreateBrush(foreground, g.GetRectBounds(needBounds));
AlphaFlattener\Primitive.cs (8)
338
gp.
Brush
= BrushProxy.CreateUserBrush(gd.Brush, bounds, drawingToWorldTransformHint, new TreeWalkProgress());
394
Brush
= BrushProxy.CreateUserBrush(
431
Brush
= BrushProxy.CreateBrush(db, id.Rect),
678
Brush
= Pen.StrokeBrush;
1095
Brush
= Brush.Clone();
1097
Brush
= Brush.PushOpacity(Opacity, OpacityMask);
1234
g.
Brush
= g.Brush.Clone();
1237
g.
Brush
= color.BlendBrush(g.Brush);
54 references to Brush
ReachFramework (54)
AlphaFlattener\Flattener.cs (10)
199
if (gp != null && gp.
Brush
!= null && gp.Pen != null &&
254
if ((gp.
Brush
!= null) && (gp.Pen != null))
265
else if ((gp.Pen != null) || (gp.
Brush
!= null))
514
if ((gi != null) && (gi.
Brush
!= null) &&
515
(gj != null) && (gj.
Brush
!= null))
518
BrushProxy bi = gi.
Brush
.ApplyTransformCopy(gi.Transform);
519
BrushProxy bj = gj.
Brush
.ApplyTransformCopy(gj.Transform);
685
under = qp.
Brush
;
692
BrushProxy blendedBrush = gp.
Brush
;
1122
ri.Brush = p.
Brush
;
AlphaFlattener\Optimizer.cs (1)
336
BrushProxy bp = gp.
Brush
;
AlphaFlattener\Primitive.cs (38)
349
if ((gp.
Brush
== null) && (gp.Pen == null))
356
if ((gp.
Brush
!= null) && (gp.Pen != null)) // split
676
Debug.Assert(
Brush
== null, "no brush expected");
1093
if (
Brush
!= null)
1095
Brush =
Brush
.Clone();
1097
Brush =
Brush
.PushOpacity(Opacity, OpacityMask);
1113
if ((Geometry != null) && (Pen != null) || (
Brush
!= null))
1146
if (
Brush
== null)
1152
Brush
.DrawGeometry(dc, p, Geometry); // BrushProxy.GetRealBrush can't handle OpacityMask
1185
BrushProxy b =
Brush
;
1204
BrushProxy b =
Brush
;
1232
if (g.
Brush
!= null)
1234
g.Brush = g.
Brush
.Clone();
1235
g.
Brush
.OpacityOnly = true;
1237
g.Brush = color.BlendBrush(g.
Brush
);
1255
if ((
Brush
== null) && (Pen == null))
1265
if (
Brush
== null)
1272
return
Brush
.IsOpaque();
1275
return Pen.IsOpaque() &&
Brush
.IsOpaque();
1288
if ((
Brush
== null) && (Pen == null))
1293
if (
Brush
== null)
1300
return
Brush
.IsTransparent();
1303
return Pen.IsTransparent() &&
Brush
.IsTransparent();
1312
Debug.Assert((
Brush
!= null) || (Pen != null), "empty primitive");
1335
Brush
?.ApplyTransform(Transform);
1362
if (
Brush
!= null)
1364
TileBrush tb =
Brush
.Brush as TileBrush;
1372
if (!
Brush
.IsTiled(geometryBounds))
1374
Brush
.CloneRealBrush();
1376
tb =
Brush
.Brush as TileBrush;
1436
if (!empty && !
Brush
.IsViewportCoverBounds(geometryBounds))
1507
if (
Brush
!= null)
1511
Brush realBrush =
Brush
.GetRealBrush();
1513
opacity *=
Brush
.Opacity;
1680
if ((GlyphRun != null) && (Pen != null) || (
Brush
!= null))
1686
dc.DrawGlyphRun(
Brush
.GetRealBrush(), GlyphRun);
2197
if ((gp != null) && (gp.
Brush
!= null) && (gp.Pen == null))
2199
BrushProxy bp = gp.
Brush
;
AlphaFlattener\PrimitiveList.cs (5)
186
if ((gp != null) && (gp.
Brush
!= null) && (gp.Pen == null))
188
Brush b = gp.
Brush
.Brush;
223
if ((gp.
Brush
!= null) && (gp.Pen == null))
225
return gp.
Brush
.IsWhite();
228
if ((gp.Pen != null) && (gp.
Brush
== null))