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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_GetRasterOperationCode_" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.GetRasterOperationCode*">GetRasterOperationCode Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_GetRasterOperationCode_" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.GetRasterOperationCode*"></a>
<h4 id="C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_GetRasterOperationCode" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.GetRasterOperationCode">GetRasterOperationCode()</h4>
<div class="markdown level1 summary"><p>retrieves the foreground mix mode of the specified device context. The mix mode specifies how the pen or interior
color and the color already on the screen are combined to yield a new color.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual RasterOperationCode GetRasterOperationCode()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function GetRasterOperationCode() As RasterOperationCode</code></pre>
</div>
<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="C1.Framework.Drawing.Gdi.DeviceContexts.RasterOperationCode.html">RasterOperationCode</a></td>
      <td><p>If the function succeeds, the return value specifies the foreground mix mode. otherwise zero indicates failed.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
