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
2
votes
0 answers

UWP - Multiple InkCanvases stacked with IsHitTestVisible = false still capturing inking

I have two InkCanvases stacked and I'd like to get the top to pass inking to the bottom. I set the top to ishittestvisible=false but it still receives the inking. Then as a test I set both to false and the top still gets inking...what am I…
2
votes
0 answers

How to add a custom word list to inkrecognizer in uwp?

I have developped a uwp app that has a custom user control allowing handwriting recognition of the user input with a stylus into a textbox. It works fine for common words, however my users often use technical terms and acronyms that are not always…
2
votes
2 answers

UWP InkCanvas Out Of Memory

I'm using MVVMLight to create a questionnaire and running into memory issues when rendering the InkCanvas controls. Here's a watered down example of what I am working with: QuestionVm public Question Question { get; set; } public HandwritingControl…
2
votes
1 answer

How can I do handwriting recognition each time a user has finished tracing a stroke?

Basing myself on the code given by MSDN for Handwriting Recognition in windows 10 apps, I tried to have it recognize the handwriting automatically after the user has finished tracing an ink stroke rather than when clicking a button. I have been able…
Streltsov
  • 417
  • 1
  • 6
  • 14
2
votes
1 answer

WPF InkCanvas: how to disable antialiasing

I'm using an InkCanvas in my project and I noticed that whenever I draw something, the stroke is very sharp, and once I release the mouse button it becomes blurry. Is there any way I can keep the stroke identical to what it looks like as I'm drawing…
BlackRainbow
  • 105
  • 1
  • 8
2
votes
1 answer

Converting InkCanvas Strokes to a Byte Array and back again

I am working on a program which converts the inkcanvas strokes to a byte array for encryption and then saves it in a txt file. Essentially I need to convert a byte array to inkcanvas strokes. I have the first half of the code done (which converts…
gtnewhouse
  • 29
  • 1
  • 6
2
votes
1 answer

WPF VisualTreeHelper.HitTest using multiple threads

In my application, there is a transparent InkCanvas on top of a Viewport3D object. The Viewport3D shows a large 3D mesh. The user will sketch on the InkCanvas in order to select a portion of the 3D model that the Viewport3D is rendering. The user is…
Maghoumi
  • 3,295
  • 3
  • 33
  • 49
2
votes
1 answer

Glow effect for lines drawn in InkCanvas

I'm using the WPF InkCanvas for a drawing application. The canvas is over a image. I can scribble over the image OK but I need it to have a glow effect - i.e. the actual lines drawn must have this effect. Is there a way to do this in XAML or in the…
CodeDog57
  • 21
  • 1
2
votes
2 answers

Crop stroked region as Bitmap from InkCanvas Container

I am just started working in WPF application. Here, I need to get the signature from user. I am using Inkcanvas control to implement this feature. I am curious on knowing is there a way in Inkcanvas control to crop the stroked region alone with…
Gopichandar
  • 2,742
  • 2
  • 24
  • 54
2
votes
0 answers

Wpf Stylus, Time or Tick for each point

I'm developing an application in wpf for a microsofft surface device. I have an InkCanvas where i can draw somethin and then obtain all Strokes and all the StylusPoint from the strokes. I need, aniway, to obtain the timestamp (or some kind of tick,…
Razlo3p
  • 455
  • 2
  • 7
  • 28
2
votes
0 answers

WPF InkCanvas Convert Text to StrokesCollection

I've been working on my first WPF paint application for some time now. Having said that, I'm consolidating all the drawn objects into multiple Stroke Collections, so that each object could easily be edited using default InkCanvas draw modes (…
2
votes
1 answer

Databind InkCanvas Children

In a WPF application I have an ObservableCollection of objects (areas on an image) that I want to display and edit (size and position) at runtime. I would like to use an InkCanvas in Select mode with Rectangles representing my objects, but it…
Tiberiu Ana
  • 3,663
  • 1
  • 24
  • 25
2
votes
3 answers

InkCanvas to BitMap

I have a problem with saving canvas to BMP file (or any other type). I'm trying to save my InkCanvas like this: int margin = (int)canvas.Margin.Left; int width = (int)canvas.ActualWidth -margin; int height = (int)canvas.ActualHeight…
Vitaly Senko
  • 323
  • 2
  • 13
2
votes
1 answer

Drawing Stroke and DrawingVisual in a custom InkCanvas

I have a class that inherits the InkCanvas class. I overridden the VisualChildrenCount property and the GetVisualChild method: Visual GetVisualChild(int index) { if (index == 0) { return InkCanvas.GetVisualChild(index); } …
gliderkite
  • 8,828
  • 6
  • 44
  • 80
2
votes
3 answers

How can I save an image from ink canvas?

I am trying to save an image from ink canvas however it does not create any file after saving, this is my code: RenderTargetBitmap rtb = new RenderTargetBitmap( (int)canvas.Width, (int)canvas.Height, 0, 0,…
aripian
  • 85
  • 7