# GrapeCity.Documents.Imaging.Skia.PngOptions

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Imaging_Skia_PngOptions" data-uid="GrapeCity.Documents.Imaging.Skia.PngOptions" class="text-break">PngOptions Class
</h1>
  <div class="markdown level0 summary"><p>Options to control the PNG encoding.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">PngOptions</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Imaging.Skia.html">GrapeCity.Documents.Imaging.Skia</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.Skia.dll</h6>
  <h5 id="GrapeCity_Documents_Imaging_Skia_PngOptions_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PngOptions</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PngOptions</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Imaging_Skia_PngOptions__ctor" data-uid="GrapeCity.Documents.Imaging.Skia.PngOptions.#ctor">
          <a class="xref" href="GrapeCity.Documents.Imaging.Skia.PngOptions.-ctor.html#GrapeCity_Documents_Imaging_Skia_PngOptions__ctor">PngOptions()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Imaging_Skia_PngOptions_FilterFlags" data-uid="GrapeCity.Documents.Imaging.Skia.PngOptions.FilterFlags">
          <a class="xref" href="GrapeCity.Documents.Imaging.Skia.PngOptions.FilterFlags.html#GrapeCity_Documents_Imaging_Skia_PngOptions_FilterFlags">FilterFlags</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the filtering flags.
<remarks>
This enumeration supports a bitwise combination of its member values.
If a single filter is chosen, then that filter will be used for every row.
If multiple filters are chosen, then a heuristic will be used to guess
which filter will encode smallest, then apply that filter. This happens
on a per row basis, different rows can use different filters.
</remarks>
<remarks>
Using a single filter (or less filters) is typically faster. Trying all of the filters may help minimize the output file size.
</remarks>
<remarks>
The default value is <a class="xref" href="GrapeCity.Documents.Imaging.Skia.PngFilterFlags.html#GrapeCity_Documents_Imaging_Skia_PngFilterFlags_AllFilters">AllFilters</a>.
</remarks></p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_Skia_PngOptions_ZLibLevel" data-uid="GrapeCity.Documents.Imaging.Skia.PngOptions.ZLibLevel">
          <a class="xref" href="GrapeCity.Documents.Imaging.Skia.PngOptions.ZLibLevel.html#GrapeCity_Documents_Imaging_Skia_PngOptions_ZLibLevel">ZLibLevel</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the compression level in the range 0..9.
<remarks>
The default value is 7.
</remarks></p>
</td>
      </tr>
    </tbody>
  </table>

</div>
