SPen - 使用commitHistory()强制提交操作

时间:2017-08-10 10:44:24

标签: android samsung-mobile samsung-mobile-sdk samsung-galaxy stylus-pen

我试图在两个点之间画一条线而不从屏幕上释放笔并移除不在这两点之间的线的其余部分。

enter image description here

问题是如果我没有使用手写笔进行操作,则线路未提交,则所有线条都会消失(两点之间的线加上线条的其余部分)。

要使其余部分消失,我使用undo()方法,我想使用commitHistory()方法来保持两点之间的界限。 但是这种方法需要SpenPageDoc.HistoryUpdateInfo参数,我不知道如何得到这个......

我使用的是最新的三星SPen SDK: http://developer.samsung.com/onlinedocs/sms/pen-light/index.html?com/samsung/android/sdk/pen/document/SpenPageDoc.HistoryListener.html

由于

0 个答案:

没有答案