iink SDK on Device

Answered

Importing images

Let's say we have an app where we have custom shapes (for example: speech bubbles, wide-body arrows filled with color, etc.). Would there be any way to import the shapes into an iink block to display and allow the user manipulate (resize, rotate, etc) those using iink functionality?

If so, how could it be done?

Thanks!


Best Answer

Dear Nicolas,


currently, there is indeed a way to import the primitives of a document such as Shapes, arrows...


This can be done in Diagram and "raw-content" parts (in your particular case, it looks like you should rather use the Diagram mode), creating a JIIX file that contains the Shapes you want to add and import this JIIX file (of coruse, as already said, you cannot import Text via a JIIX file).


In order to have an overview how to create such JIIX file, the easier is that you set a Diagram part, draw such shapes and export as JIIX ; you will then see how we format a JIIX file.


Best regards,


Olivier

1 Comment

Answer

Dear Nicolas,


currently, there is indeed a way to import the primitives of a document such as Shapes, arrows...


This can be done in Diagram and "raw-content" parts (in your particular case, it looks like you should rather use the Diagram mode), creating a JIIX file that contains the Shapes you want to add and import this JIIX file (of coruse, as already said, you cannot import Text via a JIIX file).


In order to have an overview how to create such JIIX file, the easier is that you set a Diagram part, draw such shapes and export as JIIX ; you will then see how we format a JIIX file.


Best regards,


Olivier