inkpicture3つ配置して、参考のhttp://blog.wdnet.jp/tech/archives/148さんの
ボタンを付けたら、3文字の各々の認識修正できそうでした。
楕円とか、四角とかの中の文字の認識もできるのかもしれませんが、誰かいませんか~
Private Sub CommandButton2_Click()
'https://teratail.com/questions/111853
'http://blog.wdnet.jp/tech/archives/148
'MSINKAUTLib = Microsoft Tablet PC Type Library, version 1.0
'https://docs.microsoft.com/en-us/windows/win32/tablet/character-autocomplete-sample
Dim recos As InkRecognizers
Dim reco As IInkRecognizer
Set reco = InkEdit1.Recognizer
Dim conte1 As InkRecognizerContext
Set conte1 = reco.CreateRecognizerContext
Set conte1.Strokes = InkPicture1.Ink.Strokes
conte1.EndInkInput
Dim reso As IInkRecognitionResult
Set reso = conte1.Recognize(&H41)
reso2 = reso.TopString
Dim conte2 As InkRecognizerContext
Set conte2 = reco.CreateRecognizerContext
Set conte2.Strokes = InkPicture2.Ink.Strokes
conte2.EndInkInput
Set reso = conte2.Recognize(&H42)
reso2 = reso2 & reso.TopString
Dim conte3 As InkRecognizerContext
Set conte3 = reco.CreateRecognizerContext
Set conte3.Strokes = InkPicture3.Ink.Strokes
conte3.EndInkInput
Set reso = conte3.Recognize(&H42)
reso2 = reso2 & reso.TopString
MsgBox reso2
End Sub
Private Sub CommandButton3_Click()
InkPicture1.EditingMode = MSINKAUTLib.InkOverlayEditingMode.IOEM_Ink
InkPicture2.EditingMode = MSINKAUTLib.InkOverlayEditingMode.IOEM_Ink
InkPicture3.EditingMode = MSINKAUTLib.InkOverlayEditingMode.IOEM_Ink
End Sub
Private Sub CommandButton4_Click()
InkPicture1.EditingMode = MSINKAUTLib.InkOverlayEditingMode.IOEM_Delete
InkPicture2.EditingMode = MSINKAUTLib.InkOverlayEditingMode.IOEM_Delete
InkPicture3.EditingMode = MSINKAUTLib.InkOverlayEditingMode.IOEM_Delete
End Sub
Private Sub CommandButton5_Click()
InkPicture1.EditingMode = MSINKAUTLib.InkOverlayEditingMode.IOEM_Select
InkPicture2.EditingMode = MSINKAUTLib.InkOverlayEditingMode.IOEM_Select
InkPicture3.EditingMode = MSINKAUTLib.InkOverlayEditingMode.IOEM_Select
End Sub
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。