不使用文本块的Inkcanvas drawtext [英] Inkcanvas drawtext without using textblock
本文介绍了不使用文本块的Inkcanvas drawtext的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我目前在WPF中使用Inkcanvas控件开发一个带有高亮和擦除功能的手写程序。我希望能够在Inkcanvas中绘制打印文本,但不能使用像Textblock这样的东西,因为我希望能够突出显示或删除打印文本的某些字符。
感谢您的帮助,
Harold
Hi,
I presently develop a program in WPF using Inkcanvas control for handwriting with highlight and erase features. I want to be able to draw printed text in the Inkcanvas but not using something like Textblock because I want to be able to highlight or erase some characters of the printed text.
Thanks for your help,
Harold
推荐答案
我想在WPF画布中使用InkCanvas类功能,这意味着我想在Canvas上绘制一个自由的手或文本。最终我想用铅笔绘制文字,风格'InkRecognition'的算法将直接在画布中转换印刷文本中的写意文本。使用橡皮擦我可以删除一些字符,并可能用预印文本或写意字符替换。
如果我使用文本块打印文本,我将无法在文本上书写或使用橡皮擦擦除字符。
I want to use InkCanvas kind of functionality in WPF canvas, means I want to draw a free hand line or text on Canvas. Ultimately I want to draw text with the pencil and an algorithm of style 'InkRecognition' will convert freehand text in printed text directly in the canvas. Using the eraser I can be able to erase some characters and possibly replace with preprint text or freehand characters.
If I am using textblock for the printed text I won't be able to write over the text or erase characters using the eraser.
这篇关于不使用文本块的Inkcanvas drawtext的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文