Enum ImlRenderingMode
Namespace: Aspose.Words.Saving
Assembly: Aspose.Words.dll (25.12.0)
Specifies how ink (InkML) objects are rendered to fixed page formats.
public enum ImlRenderingModeFields
Fallback = 0
If fall-back shape is available for ink (InkML) object, Aspose.Words renders fall-back shape instead of the InkML.
Please note that after saving a document to a fixed page format with fall-back rendering mode, InkML objects in the AW document model are permanently replaced with their fall-back counterparts. As a result, saving the same document again will always use fall-back shapes, even if Aspose.Words.Saving.ImlRenderingMode is set to Aspose.Words.Saving.ImlRenderingMode.InkML.
InkML = 1
Aspose.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);