ImlRenderingMode
Inheritance: java.lang.Object
public class ImlRenderingMode
Specifies how ink (InkML) objects are rendered to fixed page formats.
Examples:
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);
Fields
Field | Description |
---|---|
FALLBACK | If fall-back shape is available for ink (InkML) object, Aspose.Words renders fall-back shape instead of the InkML. |
INK_ML | Aspose.Words ignores fall-back shape of ink (InkML) object and renders InkML itself. |
length |
Methods
Method | Description |
---|---|
fromName(String imlRenderingModeName) | |
getName(int imlRenderingMode) | |
getValues() | |
toString(int imlRenderingMode) |
FALLBACK
public static int FALLBACK
If fall-back shape is available for ink (InkML) object, Aspose.Words renders fall-back shape instead of the InkML.
Remarks:
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 INK_ML.
INK_ML
public static int INK_ML
Aspose.Words ignores fall-back shape of ink (InkML) object and renders InkML itself. This is the default mode.
length
public static int length
fromName(String imlRenderingModeName)
public static int fromName(String imlRenderingModeName)
Parameters:
Parameter | Type | Description |
---|---|---|
imlRenderingModeName | java.lang.String |
Returns: int
getName(int imlRenderingMode)
public static String getName(int imlRenderingMode)
Parameters:
Parameter | Type | Description |
---|---|---|
imlRenderingMode | int |
Returns: java.lang.String
getValues()
public static int[] getValues()
Returns: int[]
toString(int imlRenderingMode)
public static String toString(int imlRenderingMode)
Parameters:
Parameter | Type | Description |
---|---|---|
imlRenderingMode | int |
Returns: java.lang.String