Text

Hello, how can I convert a stroke to a string if I don't draw it on the screen?

您好,如果我不在屏幕上绘制笔画,如何将笔划转换为字符串?

NSInteger n = 23 ;

 IINKPointerEvent events [ n];

    IINKPointerEvent * p = events;

 

    IINKPointerType pointerType = IINKPointerTypePen ;

 

 //描边1

    * P ++ = IINKPointerEventMakeDown CGPointMake 184 124 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 184 125 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 184 128 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 184 133 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 184 152 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 184 158 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 184 163 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 183 167 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 183 174 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 183 183 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeUp CGPointMake 183 184 ), - 1 0 ,pointerType,0 );

 

 //描边2

    * P ++ = IINKPointerEventMakeDown CGPointMake 150 126 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 151 126 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 152 126 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 158 126 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 166 126 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 184 126 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 190 128 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 196 128 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 200 128 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 207 128 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeMove CGPointMake 208 128 ), - 1 0 ,pointerType,0 );

    * P ++ = IINKPointerEventMakeUp CGPointMake 209 128 ), - 1 0 ,pointerType,0 );

1 Comment

Dear Zxw,


Thank you for your question.

What you looking for is a batch processing content.

You will found all the needed informations following this link : https://developer.myscript.com/docs/interactive-ink/1.2/ios/advanced/off-screen-usage/


Let me know if this is usefull.


Regards,


Maël

Login or Signup to post a comment
  • Support
  • Forums
  • Text
  • Hello, how can I convert a stroke to a string if I don't draw it on the screen?