# GrapeCity.ActiveReports.Rendering.GraphicalUtils.CreateBrush

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Rendering_GraphicalUtils_CreateBrush_" data-uid="GrapeCity.ActiveReports.Rendering.GraphicalUtils.CreateBrush*">CreateBrush Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_GraphicalUtils_CreateBrush_" data-uid="GrapeCity.ActiveReports.Rendering.GraphicalUtils.CreateBrush*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_GraphicalUtils_CreateBrush_GrapeCity_ActiveReports_Drawing_IDrawingCanvas_GrapeCity_ActiveReports_Extensibility_Rendering_Components_IStyle_System_Drawing_RectangleF_System_Boolean__" data-uid="GrapeCity.ActiveReports.Rendering.GraphicalUtils.CreateBrush(GrapeCity.ActiveReports.Drawing.IDrawingCanvas,GrapeCity.ActiveReports.Extensibility.Rendering.Components.IStyle,System.Drawing.RectangleF,System.Boolean@)">CreateBrush(IDrawingCanvas, IStyle, RectangleF, out bool)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static BrushEx CreateBrush(this IDrawingCanvas canvas, IStyle style, RectangleF boundRectEx, out bool backgroundExist)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Drawing.IDrawingCanvas.html">IDrawingCanvas</a></td>
      <td><span class="parametername">canvas</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Extensibility.Rendering.Components.IStyle.html">IStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">boundRectEx</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">backgroundExist</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Drawing.BrushEx.html">BrushEx</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Rendering_GraphicalUtils_CreateBrush_" data-uid="GrapeCity.ActiveReports.Rendering.GraphicalUtils.CreateBrush*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_GraphicalUtils_CreateBrush_GrapeCity_ActiveReports_Drawing_IDrawingCanvas_GrapeCity_ActiveReports_Extensibility_Rendering_Components_IStyle_System_Drawing_RectangleF_System_Double_" data-uid="GrapeCity.ActiveReports.Rendering.GraphicalUtils.CreateBrush(GrapeCity.ActiveReports.Drawing.IDrawingCanvas,GrapeCity.ActiveReports.Extensibility.Rendering.Components.IStyle,System.Drawing.RectangleF,System.Double)">CreateBrush(IDrawingCanvas, IStyle, RectangleF, double)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static BrushEx CreateBrush(this IDrawingCanvas canvas, IStyle style, RectangleF boundRectEx, double transparency)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Drawing.IDrawingCanvas.html">IDrawingCanvas</a></td>
      <td><span class="parametername">canvas</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Extensibility.Rendering.Components.IStyle.html">IStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">boundRectEx</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">transparency</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Drawing.BrushEx.html">BrushEx</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Rendering_GraphicalUtils_CreateBrush_" data-uid="GrapeCity.ActiveReports.Rendering.GraphicalUtils.CreateBrush*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_GraphicalUtils_CreateBrush_GrapeCity_ActiveReports_Drawing_IDrawingCanvas_GrapeCity_ActiveReports_Extensibility_Rendering_Components_IStyle_System_Drawing_RectangleF_System_Double_System_Boolean__" data-uid="GrapeCity.ActiveReports.Rendering.GraphicalUtils.CreateBrush(GrapeCity.ActiveReports.Drawing.IDrawingCanvas,GrapeCity.ActiveReports.Extensibility.Rendering.Components.IStyle,System.Drawing.RectangleF,System.Double,System.Boolean@)">CreateBrush(IDrawingCanvas, IStyle, RectangleF, double, out bool)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static BrushEx CreateBrush(this IDrawingCanvas canvas, IStyle style, RectangleF boundRectEx, double transparency, out bool backgroundExist)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Drawing.IDrawingCanvas.html">IDrawingCanvas</a></td>
      <td><span class="parametername">canvas</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Extensibility.Rendering.Components.IStyle.html">IStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">boundRectEx</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">transparency</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">backgroundExist</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Drawing.BrushEx.html">BrushEx</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
