Aspose API References – XImageCollection https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/ Recent content in XImageCollection on Aspose API References Hugo -- gohugo.io en Net: Count https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/count/ Mon, 01 Jan 0001 00:00:00 +0000 https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/count/ <h2 id="ximagecollectioncount-property">XImageCollection.Count property</h2> <p>Count of images in collection.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="kt">int</span> <span class="n">Count</span> <span class="p">{</span> <span class="k">get</span><span class="p">;</span> <span class="p">}</span> </span></span></code></pre></div><h3 id="see-also">See Also</h3> <ul> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <!-- DO NOT EDIT: generated by xmldocmd for Aspose.PDF.dll --> Net: IsReadOnly https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/isreadonly/ Mon, 01 Jan 0001 00:00:00 +0000 https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/isreadonly/ <h2 id="ximagecollectionisreadonly-property">XImageCollection.IsReadOnly property</h2> <p>Gets a value indicating whether the collection is read-only.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="kt">bool</span> <span class="n">IsReadOnly</span> <span class="p">{</span> <span class="k">get</span><span class="p">;</span> <span class="p">}</span> </span></span></code></pre></div><h3 id="see-also">See Also</h3> <ul> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <!-- DO NOT EDIT: generated by xmldocmd for Aspose.PDF.dll --> Net: IsSynchronized https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/issynchronized/ Mon, 01 Jan 0001 00:00:00 +0000 https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/issynchronized/ <h2 id="ximagecollectionissynchronized-property">XImageCollection.IsSynchronized property</h2> <p>Returns true if object is synchronized.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="kt">bool</span> <span class="n">IsSynchronized</span> <span class="p">{</span> <span class="k">get</span><span class="p">;</span> <span class="p">}</span> </span></span></code></pre></div><h3 id="see-also">See Also</h3> <ul> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <!-- DO NOT EDIT: generated by xmldocmd for Aspose.PDF.dll --> Net: Item https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/item/ Mon, 01 Jan 0001 00:00:00 +0000 https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/item/ <h2 id="ximagecollection-indexer-1-of-2">XImageCollection indexer (1 of 2)</h2> <p>Gets image from collection by its index.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="n">XImage</span> <span class="k">this</span><span class="p">[</span><span class="kt">int</span> <span class="n">index</span><span class="p">]</span> <span class="p">{</span> <span class="k">get</span><span class="p">;</span> <span class="p">}</span> </span></span></code></pre></div><table> <thead> <tr> <th>Parameter</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>index</td> <td>Image index</td> </tr> </tbody> </table> <h3 id="return-value">Return Value</h3> <p>Retrieved image.</p> <h3 id="see-also">See Also</h3> <ul> <li>class <a href="../../ximage">XImage</a></li> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <hr> <h2 id="ximagecollection-indexer-2-of-2">XImageCollection indexer (2 of 2)</h2> <p>Gets image from collection by its name.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="n">XImage</span> <span class="k">this</span><span class="p">[</span><span class="kt">string</span> <span class="n">name</span><span class="p">]</span> <span class="p">{</span> <span class="k">get</span><span class="p">;</span> <span class="p">}</span> </span></span></code></pre></div><table> <thead> <tr> <th>Parameter</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>name</td> <td>Image name.</td> </tr> </tbody> </table> <h3 id="return-value-1">Return Value</h3> <p>Retrieved image.</p> <h3 id="see-also-1">See Also</h3> <ul> <li>class <a href="../../ximage">XImage</a></li> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <!-- DO NOT EDIT: generated by xmldocmd for Aspose.PDF.dll --> Net: Names https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/names/ Mon, 01 Jan 0001 00:00:00 +0000 https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/names/ <h2 id="ximagecollectionnames-property">XImageCollection.Names property</h2> <p>Gets array of image names.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="kt">string</span><span class="p">[]</span> <span class="n">Names</span> <span class="p">{</span> <span class="k">get</span><span class="p">;</span> <span class="p">}</span> </span></span></code></pre></div><h3 id="see-also">See Also</h3> <ul> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <!-- DO NOT EDIT: generated by xmldocmd for Aspose.PDF.dll --> Net: SyncRoot https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/syncroot/ Mon, 01 Jan 0001 00:00:00 +0000 https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/syncroot/ <h2 id="ximagecollectionsyncroot-property">XImageCollection.SyncRoot property</h2> <p>Returns synchronization object.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="kt">object</span> <span class="n">SyncRoot</span> <span class="p">{</span> <span class="k">get</span><span class="p">;</span> <span class="p">}</span> </span></span></code></pre></div><h3 id="see-also">See Also</h3> <ul> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <!-- DO NOT EDIT: generated by xmldocmd for Aspose.PDF.dll --> Net: Add https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/add/ Mon, 01 Jan 0001 00:00:00 +0000 https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/add/ <h2 id="add">Add(XImage)</h2> <p>Adds new image to Image list. This method adds image as reference to the same PdfObject (which allows to decrease file size)</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="kt">string</span> <span class="n">Add</span><span class="p">(</span><span class="n">XImage</span> <span class="n">image</span><span class="p">)</span> </span></span></code></pre></div><table> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>image</td> <td>XImage</td> <td>XImage to be added.</td> </tr> </tbody> </table> <h3 id="return-value">Return Value</h3> <p>Name of the added image.</p> <h3 id="see-also">See Also</h3> <ul> <li>class <a href="../../ximage">XImage</a></li> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <hr> <h2 id="add_1">Add(Stream)</h2> <p>Adds entity to the end of the collection, so entity can be accessed by the last index.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="kt">string</span> <span class="n">Add</span><span class="p">(</span><span class="n">Stream</span> <span class="n">image</span><span class="p">)</span> </span></span></code></pre></div><table> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>image</td> <td>Stream</td> <td>Stream containing image data (in JPEG format).</td> </tr> </tbody> </table> <h3 id="return-value-1">Return Value</h3> <p>Name of the added image.</p> <h3 id="see-also-1">See Also</h3> <ul> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <hr> <h2 id="add_2">Add(Stream, ImageFilterType)</h2> <p>Adds entity to the end of the collection, so entity can be accessed by the last index.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="kt">string</span> <span class="n">Add</span><span class="p">(</span><span class="n">Stream</span> <span class="n">image</span><span class="p">,</span> <span class="n">ImageFilterType</span> <span class="n">filterType</span><span class="p">)</span> </span></span></code></pre></div><table> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>image</td> <td>Stream</td> <td>Stream containing image data.</td> </tr> <tr> <td>filterType</td> <td>ImageFilterType</td> <td>The image filter type.</td> </tr> </tbody> </table> <h3 id="return-value-2">Return Value</h3> <p>Name of the added image.</p> <h3 id="see-also-2">See Also</h3> <ul> <li>enum <a href="../../imagefiltertype">ImageFilterType</a></li> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <hr> <h2 id="add_3">Add(Stream, int)</h2> <p>Adds entity to the end of the collection, so entity can be accessed by the last index.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="k">void</span> <span class="n">Add</span><span class="p">(</span><span class="n">Stream</span> <span class="n">image</span><span class="p">,</span> <span class="kt">int</span> <span class="n">quality</span><span class="p">)</span> </span></span></code></pre></div><table> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>image</td> <td>Stream</td> <td>Stream containing image data (in JPEG format).</td> </tr> <tr> <td>quality</td> <td>Int32</td> <td>JPEG quality.</td> </tr> </tbody> </table> <h3 id="see-also-3">See Also</h3> <ul> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <!-- DO NOT EDIT: generated by xmldocmd for Aspose.PDF.dll --> Net: Clear https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/clear/ Mon, 01 Jan 0001 00:00:00 +0000 https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/clear/ <h2 id="ximagecollectionclear-method">XImageCollection.Clear method</h2> <p>Clears all items from the collection.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="k">void</span> <span class="n">Clear</span><span class="p">()</span> </span></span></code></pre></div><h3 id="see-also">See Also</h3> <ul> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <!-- DO NOT EDIT: generated by xmldocmd for Aspose.PDF.dll --> Net: Contains https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/contains/ Mon, 01 Jan 0001 00:00:00 +0000 https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/contains/ <h2 id="ximagecollectioncontains-method">XImageCollection.Contains method</h2> <p>Determines whether the collection contains a specific value.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="kt">bool</span> <span class="n">Contains</span><span class="p">(</span><span class="n">XImage</span> <span class="n">item</span><span class="p">)</span> </span></span></code></pre></div><table> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>item</td> <td>XImage</td> <td>The object to locate in the collection.</td> </tr> </tbody> </table> <h3 id="return-value">Return Value</h3> <p>true if item is found in the collection; otherwise, false.</p> <h3 id="see-also">See Also</h3> <ul> <li>class <a href="../../ximage">XImage</a></li> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <!-- DO NOT EDIT: generated by xmldocmd for Aspose.PDF.dll --> Net: CopyTo https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/copyto/ Mon, 01 Jan 0001 00:00:00 +0000 https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/copyto/ <h2 id="ximagecollectioncopyto-method">XImageCollection.CopyTo method</h2> <p>Copies array of images into collection.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="k">void</span> <span class="n">CopyTo</span><span class="p">(</span><span class="n">XImage</span><span class="p">[]</span> <span class="n">array</span><span class="p">,</span> <span class="kt">int</span> <span class="n">index</span><span class="p">)</span> </span></span></code></pre></div><table> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>array</td> <td>XImage[]</td> <td>Array to be copied.</td> </tr> <tr> <td>index</td> <td>Int32</td> <td>Index where images will be copied into collection.</td> </tr> </tbody> </table> <h3 id="see-also">See Also</h3> <ul> <li>class <a href="../../ximage">XImage</a></li> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <!-- DO NOT EDIT: generated by xmldocmd for Aspose.PDF.dll --> Net: Delete https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/delete/ Mon, 01 Jan 0001 00:00:00 +0000 https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/delete/ <h2 id="delete_1">Delete(int)</h2> <p>Removes index from collection by index.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="k">void</span> <span class="n">Delete</span><span class="p">(</span><span class="kt">int</span> <span class="n">index</span><span class="p">)</span> </span></span></code></pre></div><table> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>index</td> <td>Int32</td> <td>Image index.</td> </tr> </tbody> </table> <h3 id="see-also">See Also</h3> <ul> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <hr> <h2 id="delete_2">Delete(int, ImageDeleteAction)</h2> <p>Removes image from collection by index performing action specified by action parameter.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="k">void</span> <span class="n">Delete</span><span class="p">(</span><span class="kt">int</span> <span class="n">index</span><span class="p">,</span> <span class="n">ImageDeleteAction</span> <span class="n">action</span><span class="p">)</span> </span></span></code></pre></div><table> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>index</td> <td>Int32</td> <td>Index of the image to be removed.</td> </tr> <tr> <td>action</td> <td>ImageDeleteAction</td> <td>Action perfromed after image deleting.</td> </tr> </tbody> </table> <h3 id="see-also-1">See Also</h3> <ul> <li>enum <a href="../../imagedeleteaction">ImageDeleteAction</a></li> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <hr> <h2 id="delete_3">Delete(string)</h2> <p>Removes item from collection by name.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="k">void</span> <span class="n">Delete</span><span class="p">(</span><span class="kt">string</span> <span class="n">name</span><span class="p">)</span> </span></span></code></pre></div><table> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>name</td> <td>String</td> <td>Name of image which must to be deleted.</td> </tr> </tbody> </table> <h3 id="see-also-2">See Also</h3> <ul> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <hr> <h2 id="delete_4">Delete(string, ImageDeleteAction)</h2> <p>Removes item from collection by name.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="k">void</span> <span class="n">Delete</span><span class="p">(</span><span class="kt">string</span> <span class="n">name</span><span class="p">,</span> <span class="n">ImageDeleteAction</span> <span class="n">action</span><span class="p">)</span> </span></span></code></pre></div><table> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>name</td> <td>String</td> <td>Name of image which must to be deleted.</td> </tr> <tr> <td>action</td> <td>ImageDeleteAction</td> <td>Action to be performed with image object.</td> </tr> </tbody> </table> <h3 id="see-also-3">See Also</h3> <ul> <li>enum <a href="../../imagedeleteaction">ImageDeleteAction</a></li> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <hr> <h2 id="delete">Delete()</h2> <p>Deletes images from collection.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="k">void</span> <span class="n">Delete</span><span class="p">()</span> </span></span></code></pre></div><h3 id="see-also-4">See Also</h3> <ul> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <!-- DO NOT EDIT: generated by xmldocmd for Aspose.PDF.dll --> Net: GetEnumerator https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/getenumerator/ Mon, 01 Jan 0001 00:00:00 +0000 https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/getenumerator/ <h2 id="ximagecollectiongetenumerator-method">XImageCollection.GetEnumerator method</h2> <p>Returns collection enumerator.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="n">IEnumerator</span><span class="p">&lt;</span><span class="n">XImage</span><span class="p">&gt;</span> <span class="n">GetEnumerator</span><span class="p">()</span> </span></span></code></pre></div><h3 id="return-value">Return Value</h3> <p>Enumerator of collection</p> <h3 id="see-also">See Also</h3> <ul> <li>class <a href="../../ximage">XImage</a></li> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <!-- DO NOT EDIT: generated by xmldocmd for Aspose.PDF.dll --> Net: GetImageName https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/getimagename/ Mon, 01 Jan 0001 00:00:00 +0000 https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/getimagename/ <h2 id="ximagecollectiongetimagename-method">XImageCollection.GetImageName method</h2> <p>Returns name in images list which is key of the given image.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="kt">string</span> <span class="n">GetImageName</span><span class="p">(</span><span class="n">XImage</span> <span class="n">image</span><span class="p">)</span> </span></span></code></pre></div><table> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>image</td> <td>XImage</td> <td>Image to search.</td> </tr> </tbody> </table> <h3 id="return-value">Return Value</h3> <p>Name (key) of the found image; null if images was not found.</p> <h3 id="see-also">See Also</h3> <ul> <li>class <a href="../../ximage">XImage</a></li> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <!-- DO NOT EDIT: generated by xmldocmd for Aspose.PDF.dll --> Net: Remove https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/remove/ Mon, 01 Jan 0001 00:00:00 +0000 https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/remove/ <h2 id="ximagecollectionremove-method">XImageCollection.Remove method</h2> <p>Removes item from collection, throws NotImplementedException.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="kt">bool</span> <span class="n">Remove</span><span class="p">(</span><span class="n">XImage</span> <span class="n">item</span><span class="p">)</span> </span></span></code></pre></div><table> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>item</td> <td>XImage</td> <td>Item to remove.</td> </tr> </tbody> </table> <h3 id="return-value">Return Value</h3> <p>NotImplementedException</p> <h3 id="see-also">See Also</h3> <ul> <li>class <a href="../../ximage">XImage</a></li> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <!-- DO NOT EDIT: generated by xmldocmd for Aspose.PDF.dll --> Net: Replace https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/replace/ Mon, 01 Jan 0001 00:00:00 +0000 https://reference.aspose.com/pdf/net/aspose.pdf/ximagecollection/replace/ <h2 id="replace">Replace(int, Stream)</h2> <p>Replace image in collection with another image.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="k">void</span> <span class="n">Replace</span><span class="p">(</span><span class="kt">int</span> <span class="n">index</span><span class="p">,</span> <span class="n">Stream</span> <span class="n">stream</span><span class="p">)</span> </span></span></code></pre></div><table> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>index</td> <td>Int32</td> <td>Index of collection item which will be replaced.</td> </tr> <tr> <td>stream</td> <td>Stream</td> <td>Stream containing image data (in JPEG format).</td> </tr> </tbody> </table> <h3 id="see-also">See Also</h3> <ul> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <hr> <h2 id="replace_2">Replace(int, Stream, int, bool)</h2> <p>Replace image in collection with another image.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="k">void</span> <span class="n">Replace</span><span class="p">(</span><span class="kt">int</span> <span class="n">index</span><span class="p">,</span> <span class="n">Stream</span> <span class="n">stream</span><span class="p">,</span> <span class="kt">int</span> <span class="n">quality</span><span class="p">,</span> <span class="kt">bool</span> <span class="n">isBlackAndWhite</span><span class="p">)</span> </span></span></code></pre></div><table> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>index</td> <td>Int32</td> <td>Index of collection item which will be replaced.</td> </tr> <tr> <td>stream</td> <td>Stream</td> <td>Stream containing image data (in JPEG format).</td> </tr> <tr> <td>quality</td> <td>Int32</td> <td>Quality of JPEG compression, in percent (valid vaues are 0..100).</td> </tr> <tr> <td>isBlackAndWhite</td> <td>Boolean</td> <td>If true, image is compressed with CCITT compression method which provides better compression for black nad white image. May be used only for black and white images.</td> </tr> </tbody> </table> <h3 id="see-also-1">See Also</h3> <ul> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <hr> <h2 id="replace_1">Replace(int, Stream, int)</h2> <p>Replace image in collection with another image.</p> <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-csharp" data-lang="csharp"><span class="line"><span class="cl"><span class="k">public</span> <span class="k">void</span> <span class="n">Replace</span><span class="p">(</span><span class="kt">int</span> <span class="n">index</span><span class="p">,</span> <span class="n">Stream</span> <span class="n">stream</span><span class="p">,</span> <span class="kt">int</span> <span class="n">quality</span><span class="p">)</span> </span></span></code></pre></div><table> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>index</td> <td>Int32</td> <td>Index of collection item which will be replaced.</td> </tr> <tr> <td>stream</td> <td>Stream</td> <td>Stream containing image data (in JPEG format).</td> </tr> <tr> <td>quality</td> <td>Int32</td> <td>JPEG quality.</td> </tr> </tbody> </table> <h3 id="see-also-2">See Also</h3> <ul> <li>class <a href="../../ximagecollection">XImageCollection</a></li> <li>namespace <a href="../../ximagecollection">Aspose.Pdf</a></li> <li>assembly <a href="../../../">Aspose.PDF</a></li> </ul> <!-- DO NOT EDIT: generated by xmldocmd for Aspose.PDF.dll -->