General questions

Answered

Integrate MyScript along with canvas element rather than a div element

Hello.

I have a existing system that take input from a pen and creates an image of text on a canvas. I was wondering if there is a way to implement MyScriptJS using a canvas rather than a div?

Waiting for your response.

Thanks


Best Answer

Dear Abhishek,


Indeed, you can't just register a canvas instead of a div because MyScriptJS creates a canvas into the div element.


One solution is you can look and tune the MyScriptJS library to fit your needs.


Regards,


Maël


Dear Abhishek,


May i ask you what you want achieve with the use of MyScriptJS ?


Indeed, MyScript technology already let you take input from a pen and interpret the result in a way you can exploit and interact with.


Regards,


Maël

Helllo Maël

I have Device which connects via bluetooth and the SDK from the Pen let's me draw only on canvas component.
I tried to get it to work with the  examples but was not working. it would be really great if there is a way to implement MyScript on a canvas rather than using a div.

Thanks 

Dear Abhishek,


Can you send me the part of your code you struggke with ?

This way i can investigate further.


Regards,


Maël

Hello Maël,


Sorry can't do that just let me know can we implement MyScript in a canvas and if yes then please let me know would be really great if there is a way to use canvas.

Thanks

Answer

Dear Abhishek,


Indeed, you can't just register a canvas instead of a div because MyScriptJS creates a canvas into the div element.


One solution is you can look and tune the MyScriptJS library to fit your needs.


Regards,


Maël

Cool Thanks Maël