Reputation: 115
I have a windows form application which let an user to write in a picture box using Microsoft ink.
I have used below code to use the ink.
private void Form1_Load(object sender, EventArgs e)
{
ink = new InkCollector(pictureBox1);
ink.Enabled = true;
ink.AutoRedraw = true;
}
My problem is, I want to clear this ink when I click a clear button. Can anyone help me to do this? Thank you.
Upvotes: 0
Views: 620
Reputation: 591
On the button click event, delete all the strokes.
protected void btnClear_Click(object sender, System.EventArgs e)
{
ink.DeleteStrokes();
}
Go here for more.
Upvotes: 1