# GrapeCity.Documents.Imaging.Skia.JpegOptions

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Imaging_Skia_JpegOptions" data-uid="GrapeCity.Documents.Imaging.Skia.JpegOptions" class="text-break">JpegOptions Class
</h1>
  <div class="markdown level0 summary"><p>Options to control the JPEG 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">JpegOptions</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_JpegOptions_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class JpegOptions</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class JpegOptions</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_JpegOptions__ctor" data-uid="GrapeCity.Documents.Imaging.Skia.JpegOptions.#ctor">
          <a class="xref" href="GrapeCity.Documents.Imaging.Skia.JpegOptions.-ctor.html#GrapeCity_Documents_Imaging_Skia_JpegOptions__ctor">JpegOptions()</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_JpegOptions_AlphaOption" data-uid="GrapeCity.Documents.Imaging.Skia.JpegOptions.AlphaOption">
          <a class="xref" href="GrapeCity.Documents.Imaging.Skia.JpegOptions.AlphaOption.html#GrapeCity_Documents_Imaging_Skia_JpegOptions_AlphaOption">AlphaOption</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value to control how alpha is handled.
<remarks>
JPEGs must be opaque, so this instructs the encoder on how to handle input images with alpha.
</remarks>
<remarks>
The default value is <a class="xref" href="GrapeCity.Documents.Imaging.Skia.JpegAlphaOption.html#GrapeCity_Documents_Imaging_Skia_JpegAlphaOption_Ignore">Ignore</a>.
</remarks></p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_Skia_JpegOptions_Downsample" data-uid="GrapeCity.Documents.Imaging.Skia.JpegOptions.Downsample">
          <a class="xref" href="GrapeCity.Documents.Imaging.Skia.JpegOptions.Downsample.html#GrapeCity_Documents_Imaging_Skia_JpegOptions_Downsample">Downsample</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the downsampling factor for the U and V components.
<remarks>
The default value is <a class="xref" href="GrapeCity.Documents.Imaging.Skia.JpegDownsample.html#GrapeCity_Documents_Imaging_Skia_JpegDownsample_Downsample420">Downsample420</a>.
</remarks></p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_Skia_JpegOptions_Quality" data-uid="GrapeCity.Documents.Imaging.Skia.JpegOptions.Quality">
          <a class="xref" href="GrapeCity.Documents.Imaging.Skia.JpegOptions.Quality.html#GrapeCity_Documents_Imaging_Skia_JpegOptions_Quality">Quality</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the quality of the encoding in the range 0 to 100.
<remarks>
The default value is 95.
</remarks></p>
</td>
      </tr>
    </tbody>
  </table>

</div>
