Math

Answered

How to get Bitmap From the EditorView

I have created a mathematical equation on a editor view. How to get Bitmap From this EditorView 


Best Answer

Dear Devrath,


thank you for your question.


Currently, in a Math part, you can export as LATEX, MATHML, JIIX, JPEG and PNG.


You shall then call the export function with the JPEG or PNG MimeType in your case: https://developer.myscript.com/refguides/interactive-ink/android/1.3/com/myscript/iink/Editor.html#export_-com.myscript.iink.ContentBlock-com.myscript.iink.MimeType-


Please note the supported export MimeTypes can be gotter using the getSupportedExportMimeTypes function: https://developer.myscript.com/refguides/interactive-ink/android/1.3/com/myscript/iink/Editor.html#getSupportedExportMimeTypes-com.myscript.iink.ContentBlock-


Best regards,


Olivier

1 Comment

Answer

Dear Devrath,


thank you for your question.


Currently, in a Math part, you can export as LATEX, MATHML, JIIX, JPEG and PNG.


You shall then call the export function with the JPEG or PNG MimeType in your case: https://developer.myscript.com/refguides/interactive-ink/android/1.3/com/myscript/iink/Editor.html#export_-com.myscript.iink.ContentBlock-com.myscript.iink.MimeType-


Please note the supported export MimeTypes can be gotter using the getSupportedExportMimeTypes function: https://developer.myscript.com/refguides/interactive-ink/android/1.3/com/myscript/iink/Editor.html#getSupportedExportMimeTypes-com.myscript.iink.ContentBlock-


Best regards,


Olivier


1 person likes this