# C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.RasterOperationCode

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_RasterOperationCode_" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.RasterOperationCode*">RasterOperationCode Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_RasterOperationCode_" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.RasterOperationCode*"></a>
<h4 id="C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_RasterOperationCode" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.RasterOperationCode">RasterOperationCode</h4>
<div class="markdown level1 summary"><p>Get or set the current foreground mix mode.GDI uses the foreground mix mode to combine pens and interiors of filled
objects with the colors already on the screen. The foreground mix mode defines how colors from the brush or pen
and the colors in the existing image are to be combined.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RasterOperationCode RasterOperationCode { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property RasterOperationCode As RasterOperationCode</code></pre>
</div>
<h5 class="propertyValue">Property Value</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="C1.Framework.Drawing.Gdi.DeviceContexts.RasterOperationCode.html">RasterOperationCode</a></td>
      <td><p>Specifies the mix mode. This parameter can be one of the following values.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_RasterOperationCode_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Mix modes define how GDI combines source and destination colors when drawing with the current pen.
The mix modes are binary raster operation codes, representing all possible Boolean functions of two variables,
using the binary operations AND, OR, and XOR (exclusive OR), and the unary operation NOT. The mix mode is for
raster devices only; it is not available for vector devices.</p>
</div>
</div>
