java.lang.Object
com.aspose.words.ImlRenderingMode
public class ImlRenderingMode
- extends java.lang.Object
Utility class containing constants.
Specifies how ink (InkML) objects are rendered to fixed page formats.
Example:
Shows how to render Ink object.
Document doc = new Document(getMyDir() + "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);
{
saveOptions.setImlRenderingMode(ImlRenderingMode.INK_ML);
}
doc.save(getArtifactsDir() + "ImageSaveOptions.RenderInkObject.jpeg", saveOptions);
Field Summary |
static final int | FALLBACK = 0 | |
If fall-back shape is available for ink (InkML) object, Aspose.Words renders fall-back shape instead of the InkML.
|
static final int | INK_ML = 1 | |
Aspose.Words ignores fall-back shape of ink (InkML) object and renders InkML itself.
This is the default mode.
|
FALLBACK = 0 | |
public static final int FALLBACK |
-
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 ImlRenderingMode is set to InkML.
INK_ML = 1 | |
public static final int INK_ML |
-
Aspose.Words ignores fall-back shape of ink (InkML) object and renders InkML itself.
This is the default mode.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.