如何清除Microsoft墨水图片控件? [英] How to clear microsoft ink picture control?

查看:156
本文介绍了如何清除Microsoft墨水图片控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我绘制了一些东西,并且有一个要清除的按钮,如何清除/清除/重置控件上的图形?

Say I draw something and I have a button to clear , how do i clean/clear/reset the drawing on the control ?

推荐答案

据我所知,我有一个按钮可以清除,我只需要

Well so far as I found out say I have a button to clear I just need to

inkPicture1.InkEnabled = false;
inkPicture1.Ink = new Microsoft.Ink.Ink();
inkPicture1.InkEnabled = true;
inkPicture1.Invalidate();

以便控件可以使用新的墨水对象实例化.

so that the control gets instantiated with a new ink object.

这篇关于如何清除Microsoft墨水图片控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆