Example #1
0
 private void Analysebutton_Click(object sender, EventArgs e)
 {
     HieroglifAnalyser an = new HieroglifAnalyser(m_b, m_rtList);
     GrabRect rt = ImagepropertyGrid.SelectedObject as GrabRect;
     if (rt != null)
     {
         Bitmap subBmp = null;
         an.m_bItemsDict.TryGetValue(rt, out subBmp);
         JapanpictureBox.Image = subBmp;
         JapantextBox.Text = JapanRecognitor.Recognize(subBmp);
         rt.JapanString = JapantextBox.Text;
     }
 }
Example #2
0
 private void ShowItem()
 {
     HieroglifAnalyser an = new HieroglifAnalyser(m_b, m_rtList);
     GrabRect rt = ImagepropertyGrid.SelectedObject as GrabRect;
     if (rt!=null)
     {
         Bitmap subBmp = null;
         an.m_bItemsDict.TryGetValue(rt, out subBmp);
         JapanpictureBox.Image = subBmp;
         JapantextBox.Text = rt.JapanString;
         EnglishtextBox.Text = rt.EnglishString;
     }
 }