iink SDK on Device

Answered

Exported resized image added by addImage not considering resized size

I have added an image and then I have resized that image

Now if do export, the exported image has lots of the space at the bottom, it is keeping the initial size, export not considering the resized one

ImageDrawer imageDrawer = new ImageDrawer();
imageDrawer.setImageLoader(editorView.getImageLoader());
editorView.getEditor().export_(editorView.getEditor().getRootBlock(), file.getPath(), imageDrawer);


image


Best Answer

Dear Dipannita,


currently, this is the same behavior than in your other post (export as html) ; the Export of images is not properly dealt with, which will be solved in the future release of the iink SDK.


Best regards,


Olivier


Dear Dipannita,


indeed, if you want to re-size the image, then our API is not the best choice.


Instead we recommend you use other APIs, such as the Android Bitmap API: https://developer-support.myscript.com/en/support/discussions/topics/16000026590


Best regards,


Olivier

Thanks for your response, I have added an image into Text Document and then I have resized that image using myscript control see the see below. Now I am using myscript export function to export entire document into an image. In the exported image resized image become bigger. How do I resize of my own as image I am embedding into the document itself 

image

Answer

Dear Dipannita,


currently, this is the same behavior than in your other post (export as html) ; the Export of images is not properly dealt with, which will be solved in the future release of the iink SDK.


Best regards,


Olivier