2、The exported picture is very large, how to resize the exported picture
Best Answer
O
Olivier @MyScript
said
almost 3 years ago
Dear 刚 陈,
thank you for your questions.
1-Currently, I am not sure to understand the question.
Do you want to convert then export to image? If so, this can be simply done as follows: _editor.Convert(_editor.GetRootBlock(), ConversionState.DIGITAL_EDIT); var drawer = new ImageDrawer(); drawer.ImageLoader = UcEditor.ImageLoader; _editor.Export_(_editor.GetRootBlock(), @"PATH\test.jpg", drawer);
If this doesn't match your needs, the only solution is that you use an external library, such as the Android image API, or a third part library.
Best regards,
Olivier
1 Comment
O
Olivier @MyScript
said
almost 3 years ago
Answer
Dear 刚 陈,
thank you for your questions.
1-Currently, I am not sure to understand the question.
Do you want to convert then export to image? If so, this can be simply done as follows: _editor.Convert(_editor.GetRootBlock(), ConversionState.DIGITAL_EDIT); var drawer = new ImageDrawer(); drawer.ImageLoader = UcEditor.ImageLoader; _editor.Export_(_editor.GetRootBlock(), @"PATH\test.jpg", drawer);
刚 陈
1、How to export pictures of standard text。like this?
inkEditor.export_(inkEditor.getRootBlock(), path, MimeType.PNG, imageDrawer);
2、The exported picture is very large, how to resize the exported picture
Dear 刚 陈,
thank you for your questions.
1-Currently, I am not sure to understand the question.
Do you want to convert then export to image?
If so, this can be simply done as follows:
_editor.Convert(_editor.GetRootBlock(), ConversionState.DIGITAL_EDIT);
var drawer = new ImageDrawer();
drawer.ImageLoader = UcEditor.ImageLoader;
_editor.Export_(_editor.GetRootBlock(), @"PATH\test.jpg", drawer);
2-We do not offer many parameters to tune the size of the exported image. Maybe you can try tuning the export.image-resolution configuration: https://developer.myscript.com/docs/interactive-ink/1.5/reference/configuration/#general ?
If this doesn't match your needs, the only solution is that you use an external library, such as the Android image API, or a third part library.
Best regards,
Olivier
Olivier @MyScript
Dear 刚 陈,
thank you for your questions.
1-Currently, I am not sure to understand the question.
Do you want to convert then export to image?
If so, this can be simply done as follows:
_editor.Convert(_editor.GetRootBlock(), ConversionState.DIGITAL_EDIT);
var drawer = new ImageDrawer();
drawer.ImageLoader = UcEditor.ImageLoader;
_editor.Export_(_editor.GetRootBlock(), @"PATH\test.jpg", drawer);
2-We do not offer many parameters to tune the size of the exported image. Maybe you can try tuning the export.image-resolution configuration: https://developer.myscript.com/docs/interactive-ink/1.5/reference/configuration/#general ?
If this doesn't match your needs, the only solution is that you use an external library, such as the Android image API, or a third part library.
Best regards,
Olivier