ZornsLemonade
ZornsLemonade

Reputation: 11

InkCanvas dynamic rendering of strokes

In a UWP desktop app, I would like to use pen input to make simple brush strokes. I would like to render them as the pen moves to look like paint (so the InkCanvas's custom drying can't be done after the stroke is completed in OnStrokesCollected).

Can this type of dynamic custom drying be done with InkCanvas/InkPresenter?

Upvotes: 0

Views: 294

Answers (1)

Michael S. Scherotter
Michael S. Scherotter

Reputation: 10785

You can use the CoreWetStrokeUpdateSource object to handle events to modify the ink as it's being drawing before it's rendered by the InkCanvas. Depending on what you mean by "simple brush strokes" you can achieve some interesting effects.

Upvotes: 1

Related Questions