ShapeBaseIsImage Property

Returns true if this shape is an image shape.

Namespace:  Aspose.Words.Drawing
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public bool IsImage { get; }

Property Value

Type: Boolean
Examples
Opens an HTML document with images from a stream using a base URI.
Document doc = new Document();
string fileName = MyDir + "Document.html";

// Open the stream
using (Stream stream = File.OpenRead(fileName))
{
    // Open the document. Note the Document constructor detects HTML format automatically
    // Pass the URI of the base folder so any images with relative URIs in the HTML document can be found
    LoadOptions loadOptions = new LoadOptions();
    loadOptions.BaseUri = ImageDir;

    doc = new Document(stream, loadOptions);
}

// Save in the DOC format
doc.Save(ArtifactsDir + "Document.OpenFromStreamWithBaseUri.doc");
See Also