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

How to fix this 'Missing assembly reference' error?

I am working on an application that captures real time pen strokes on a canvas using Wacom Bamboo Slate. The application is being developed for UWP platform using C#. After drawing on the canvas, save feature is to be implemented. I am using this…
SamD
  • 41
  • 6
0
votes
2 answers

Inkcanvas StrokeErasing event

I'm using an Inkcanvas at my solution. So I want to delete after user confirm, like this... XAML: C#: private void ink_StrokeErasing(object sender,…
0
votes
1 answer

Rotating image and canvas strokes 90 degrees in any direction

I am developing an application where I am using InkCanvas to allow the users to edit pictures. Everything works as expected except that I couldn't find how to rotate the inkCanvas storeks and the background image below. Below is the code which I…
0
votes
1 answer

I want to make animation in Inkcanvas control WPF

I want to make animation in Inkcanvas control like draw stroke and stroke path so it can move over the stroke path how ?
kartal
  • 17,436
  • 34
  • 100
  • 145
0
votes
0 answers

InkCanvas not committing strokes before PreviewMouseUp when using touch

I'm using a InkCanvas with a record as you draw feature. As you can see in this gif, created by drawing using a mouse: When the user fires a PreviewMouseDown event, I simply start the capture, frame by frame base on a time. The capture is done by a…
Nicke Manarin
  • 3,026
  • 4
  • 37
  • 79
0
votes
2 answers

save Inkcanvas control content as pdf

I want to save the output of InkCanvas control as PDF file I can save it as .isf and .bmp and I want to save it as .pdf how ?
kartal
  • 17,436
  • 34
  • 100
  • 145
0
votes
0 answers

How to draw a modifiable polyline on inkcanvas

I am trying to draw a polyline on inkcanvas that works like the video below. I would like to draw a polyline that I can add a point so that I can modify the polyline. https://www.youtube.com/watch?v=N9yPc14eVuQ I used a Stroke but I have to use a…
ChrisLEE
  • 31
  • 8
0
votes
1 answer

InkCanvas Eraser

I have sketchpad as InkCanvas; I want to change size of eraser so I've written: Private Sub Sketchpad_KeyDown(sender As System.Object, e As System.Windows.Input.KeyEventArgs) Handles Sketchpad.KeyDown If e.Key = Key.OemMinus Then ' Decrease size…
Wajeed Shaikh
  • 3,078
  • 1
  • 23
  • 30
0
votes
1 answer

WPF InkCanvas Z-Index for strokes

In WPF InkCanvas, ink is rendered on top and strokes don't have z-index property. I have other UIElements like shape, images on InkCanvas and can't bring UIElements to top. Is there any work around for this problem. I have tried below things. 1) use…
Himanshu Mange
  • 104
  • 1
  • 10
0
votes
1 answer

WPF InkCanvas - Some Strokes Not Collected

I have a WPF application in which there is a signature page using an ink canvas control. I have an issue where very randomly, some strokes fail to collect within the stroke collection and disappear. I know that the term "random" in software is taboo…
A. Dixon
  • 187
  • 3
  • 17
0
votes
1 answer

How do I export my wpf InkCanvas with the proper size?

I'm trying to create a simple sketching application. But I've ran into a weird problem. I have a Surface Pro 3 that I'm working on, with a DPI of 144, according to some system settings. When I save the image from my app, using 96 as the dpi, it…
Wayne Werner
  • 49,299
  • 29
  • 200
  • 290
0
votes
1 answer

WPF - InkCanvas - Background Image

I successfully changed the background of my InkCanvas from code behind with image using following code: ImageBrush imageBrush = new ImageBrush(); imageBrush.ImageSource = new BitmapImage(new Uri("temp.jpg", UriKind.Relative)); inkCanvas1.Background…
Softhmak.
  • 131
  • 9
0
votes
0 answers

Can't interact with InkPresenterRuler after interrupting inking UWP

I am writing an app which is using the InkCanvas in UWP. In my App, I do enable double touch gesture to pan and zoom and single touch to ink. To do that I disable IsInputEnabled when I detect multi-touch. The code to do that looks something like…
ClaudiaWey
  • 167
  • 9
0
votes
0 answers

UWP InkCanvas serialization format

I have a UWP app that uses an InkCanvas to capture drawings. These are then saved in the standard serialization format. I now have a requirement to display these within a ASP.NET MVC web app. (MVC 5 / .NET 4.6) I have found a way to convert these to…
Nick Goloborodko
  • 2,883
  • 3
  • 21
  • 38
0
votes
1 answer

WPF - InkCanvas touchscreen problem

I'm developing a touchscreen application, touchscreen overlay comes with its own SDK which disables all of the WPF default features. For example if I don't use this SDK i can easily draw on InkCanvas, program sees the overlay as a mouse input, but…