Questions tagged [inkcanvas]

An InkCanvas is an element that can be used to receive and display ink input.

An InkCanvas is an element that can be used to receive and display ink input. This is commonly done through the use of a stylus, which interacts with a digitizer to produce ink strokes using a stylus or a mouse. The created strokes are represented as Stroke objects, and can be manipulated either programmatically or based on user input. The InkCanvas enables users to modify or delete an existing Stroke.

The InkCanvas can be bound to a data source. For example, you can bind the Strokes property to: a base-64, encoded string that contains ink data in Ink Serialized format (ISF); or even to the Strokes property of another InkCanvas. You can also bind properties, such as DefaultDrawingAttributes and EditingMode, to other data sources.

source

289 questions
4
votes
1 answer

How to turn off all touch input at application, window or control level?

Using c# for a wpf application, if in Windows 7 touch is enabled in the control panel, a user by default can 'write' on an InkCanvas with a finger. I want to disable that and force stylus input only. I'd like to know how to do it more than one way…
matscol
  • 71
  • 1
  • 5
4
votes
2 answers

PWA InkCanvas save strokes as svg in javascript

I need to use InkCanvas in my web application using javascript (angular), is it possible to save InkCanvas as a SVG using javascript (or convert InCanvas to canvas)? i see this, but it seems it works for C#, i need a way to do it in javascript!
MHS
  • 881
  • 1
  • 13
  • 30
4
votes
1 answer

Using UWP controls in WPF

I need to use InkCanvas (which is part of UWP Windows.UI.Xaml.Controls) in a WPF application. I know the WPF has InkCanvas too but they are totally different. The UWP InkCanvas has also InkAnalyzer which I need for handwriting recognition. I created…
4
votes
1 answer

Wpf InkCanvas save stokes as svg

Is it possible to save InkCanvas stroke collection to svg image? Only thing I can find is that I can save the strokes as GIF with embedded ISF (Ink Serialized Format) or maybe render them as bitmap. I want to save strokes in vector format that can…
Mayank
  • 8,777
  • 4
  • 35
  • 60
3
votes
0 answers

Use an image in WPF InkCanvas

I would like to import an image into a WPF inkcanvas object, specifically into the strokes collection, not into the children collection and not as a background image. The rational for this is I want to be able to easily erase and manipulate on the…
3
votes
1 answer

How To Custom Render UWP Wet Ink

In WPF, you could override the OnDraw to create a custom geometry to render as the 'wet' ink, although it increases latency quite a bit since you're not using the geometry provided and already calculated. I'm wondering if it is possible to achieve…
Chen Huang
  • 80
  • 6
3
votes
1 answer

UWP InkCanvas fill freehand drawn shape with color

I'm currently working on a UWP app which should allow the user to draw any shape he wants on a InkCanvas. This shapes edges are automatically completed so that there is no open space (Up to this point everything works just fine). Now my question is:…
eXodiquas
  • 300
  • 2
  • 10
3
votes
1 answer

Draw line onto InkCanvas

I'd like to be able to draw shapes onto an InkCanvas. So far I have the following XAML:- In the…
warntme
  • 59
  • 6
3
votes
1 answer

InkCanvas MVVM binding in UWP

I have a list with InkStrokeContainer in a ListView and I try to bind the InkCanvas to it. In WPF the InkCanvas had a Strokes attribut but in UWP its not available. Another idea was to bind to an InkPresenter but how? Then my idea was to create a…
R3Tech
  • 743
  • 2
  • 9
  • 22
3
votes
1 answer

InkCanvas styluspoint timestamp

in the Microsoft.Ink world for WinForms, using an InkCollector object, a user could get the timestamp of a point in a stroke via this approach. The WPF world relies instead on the InkCanvas object, and while it has many properties, I can't seem to…
tbischel
  • 6,337
  • 11
  • 51
  • 73
3
votes
1 answer

Saving image from inkCanvas as png or jpeg file

Here is my wpf code And also there is a button When pressing the button, i want to save image drawn to a file. here is my code private void button1_Click(object…
3
votes
0 answers

ScrollViewer Not Working Properly

I have an area that users can draw in. I would like them to be able to zoom on it, and also to be able to scroll (so that it's not permanently clipped if they resize the window smaller.) So I have this:
user3911053
3
votes
1 answer

WPF inkcanvas multi touch?

I'm creating a simple paint application for a touchscreen, and I have been fighting a little bit with multi touch gestures for zooming and rotating inside an inkcanvas, but I haven't find a solution for this. Is there a simple way of providing…
user3250740
3
votes
1 answer

WPF Custom lasso selector?

How can I implement a custom lasso selector on an InkCanvas? How do I detect involved inks or elements by collecting points generated by mouse movement?
Samir Sabri
  • 71
  • 1
  • 5
3
votes
1 answer

How do I make a transparent WPF window stay on top of all other windows, but have no affect on user input?

I am trying to develop a Windows application that allows people to "draw on their screen." I’m developing with: .NET 3.5 C#/WPF I have a WPF Window that hosts an InkCanvas, both having transparent backgrounds. Window XAML…
Alexander Perls
  • 123
  • 2
  • 9
1
2
3
19 20