ImlRenderingMode

ImlRenderingMode enumeration

Specifies how ink (InkML) objects are rendered to fixed page formats.

public enum ImlRenderingMode

Values

NameValueDescription
Fallback0If fall-back shape is available for ink (InkML) object, Aspose.Words renders fall-back shape instead of the InkML.
InkML1Aspose.Words ignores fall-back shape of ink (InkML) object and renders InkML itself. This is the default mode.

Examples

Shows how to render Ink object.

Document doc = new Document(MyDir + "Ink object.docx");

// Set 'ImlRenderingMode.InkML' ignores fall-back shape of ink (InkML) object and renders InkML itself.
// If the rendering result is unsatisfactory,
// please use 'ImlRenderingMode.Fallback' to get a result similar to previous versions.
ImageSaveOptions saveOptions = new ImageSaveOptions(SaveFormat.Jpeg)
{
    ImlRenderingMode = ImlRenderingMode.InkML
};

doc.Save(ArtifactsDir + "ImageSaveOptions.RenderInkObject.jpeg", saveOptions);

See Also