16 writes to Brush
ReachFramework (16)
AlphaFlattener\DrawingContext.cs (2)
131
geo.
Brush
= brush.ApplyTransformCopy(brushTrans);
183
Brush
= foreground
AlphaFlattener\Flattener.cs (4)
216
stroke.
Brush
= null;
265
gp.
Brush
= null;
527
gi.
Brush
= bi.BlendBrush(bj);
727
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);
1237
g.
Brush
= g.Brush.Clone();
1240
g.
Brush
= color.BlendBrush(g.Brush);
55 references to Brush
ReachFramework (55)
AlphaFlattener\Flattener.cs (10)
202
if (gp != null && gp.
Brush
!= null && gp.Pen != null &&
257
if ((gp.
Brush
!= null) && (gp.Pen != null))
268
else if ((gp.Pen != null) || (gp.
Brush
!= null))
520
if ((gi != null) && (gi.
Brush
!= null) &&
521
(gj != null) && (gj.
Brush
!= null))
524
BrushProxy bi = gi.
Brush
.ApplyTransformCopy(gi.Transform);
525
BrushProxy bj = gj.
Brush
.ApplyTransformCopy(gj.Transform);
691
under = qp.
Brush
;
698
BrushProxy blendedBrush = gp.
Brush
;
1128
ri.Brush = p.
Brush
;
AlphaFlattener\Optimizer.cs (1)
336
BrushProxy bp = gp.
Brush
;
AlphaFlattener\Primitive.cs (39)
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);
1116
if ((Geometry != null) && (Pen != null) || (
Brush
!= null))
1149
if (
Brush
== null)
1155
Brush
.DrawGeometry(dc, p, Geometry); // BrushProxy.GetRealBrush can't handle OpacityMask
1188
BrushProxy b =
Brush
;
1207
BrushProxy b =
Brush
;
1235
if (g.
Brush
!= null)
1237
g.Brush = g.
Brush
.Clone();
1238
g.
Brush
.OpacityOnly = true;
1240
g.Brush = color.BlendBrush(g.
Brush
);
1258
if ((
Brush
== null) && (Pen == null))
1268
if (
Brush
== null)
1275
return
Brush
.IsOpaque();
1278
return Pen.IsOpaque() &&
Brush
.IsOpaque();
1291
if ((
Brush
== null) && (Pen == null))
1296
if (
Brush
== null)
1303
return
Brush
.IsTransparent();
1306
return Pen.IsTransparent() &&
Brush
.IsTransparent();
1315
Debug.Assert((
Brush
!= null) || (Pen != null), "empty primitive");
1338
if (
Brush
!= null)
1340
Brush
.ApplyTransform(Transform);
1368
if (
Brush
!= null)
1370
TileBrush tb =
Brush
.Brush as TileBrush;
1378
if (!
Brush
.IsTiled(geometryBounds))
1380
Brush
.CloneRealBrush();
1382
tb =
Brush
.Brush as TileBrush;
1442
if (!empty && !
Brush
.IsViewportCoverBounds(geometryBounds))
1513
if (
Brush
!= null)
1517
Brush realBrush =
Brush
.GetRealBrush();
1519
opacity *=
Brush
.Opacity;
1686
if ((GlyphRun != null) && (Pen != null) || (
Brush
!= null))
1692
dc.DrawGlyphRun(
Brush
.GetRealBrush(), GlyphRun);
2203
if ((gp != null) && (gp.
Brush
!= null) && (gp.Pen == null))
2205
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))