# GrapeCity.Documents.Pdf.Annotations.Model3DAnnotation.SetPreviewAppearance

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Pdf_Annotations_Model3DAnnotation_SetPreviewAppearance_" data-uid="GrapeCity.Documents.Pdf.Annotations.Model3DAnnotation.SetPreviewAppearance*">SetPreviewAppearance Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Pdf_Annotations_Model3DAnnotation_SetPreviewAppearance_" data-uid="GrapeCity.Documents.Pdf.Annotations.Model3DAnnotation.SetPreviewAppearance*"></a>
<h4 id="GrapeCity_Documents_Pdf_Annotations_Model3DAnnotation_SetPreviewAppearance_GrapeCity_Documents_Drawing_IImage_" data-uid="GrapeCity.Documents.Pdf.Annotations.Model3DAnnotation.SetPreviewAppearance(GrapeCity.Documents.Drawing.IImage)">SetPreviewAppearance(IImage)</h4>
<div class="markdown level1 summary"><p>Sets the preview appearance for this 3D annotation using a raster image.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetPreviewAppearance(IImage previewImage)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetPreviewAppearance(previewImage As IImage)</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="../DS.Documents.Imaging/GrapeCity.Documents.Drawing.IImage.html">IImage</a></td>
      <td><span class="parametername">previewImage</span></td>
      <td><p>The <a class="xref" href="../DS.Documents.Imaging/GrapeCity.Documents.Drawing.IImage.html">IImage</a> object to use as the preview appearance when the annotation is not activated.
The image will be stretched to fit the annotation's bounds.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Documents_Pdf_Annotations_Model3DAnnotation_SetPreviewAppearance_GrapeCity_Documents_Drawing_IImage__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
This method creates a visual representation of the 3D content that is displayed when the 3D annotation
is not activated. Since DsPdf cannot automatically generate previews for 3D content, you must provide
a preview image generated by a third-party tool or rendered separately.
</p>
<p>
The provided image is stretched to fill the annotation's bounds (<a class="xref" href="GrapeCity.Documents.Pdf.Annotations.AnnotationBase.Rect.html#GrapeCity_Documents_Pdf_Annotations_AnnotationBase_Rect">Rect</a>).
The appearance stream is stored as the normal default appearance of the annotation.
</p>
</div>
</div>
