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

Is there a way to get the current Stroke on an InkCanvas?

In UWP I am using an InkCanvas to detect strokes. I would like to change the color of the current Stroke. I tried a couple of events but I'm only able to change the color of the Stroke after it has been collected through the following…
bkardol
  • 1,258
  • 1
  • 20
  • 32
0
votes
1 answer

How to save the InkCanvas stroke and image?

I want to save the image with InkCanvas stroke in a single image as like the below image. When I am using the RenderTargetBitmap the ink stroke disappeared and the path not saved. How to save the image and ink stroke in a single image without using…
Santhiya
  • 191
  • 2
  • 14
0
votes
0 answers

How to save the InkCanvas stroke in UWP?

I want to save grid, the grid contains Rectangle and InkCanvas. Save…
Santhiya
  • 191
  • 2
  • 14
0
votes
1 answer

Save Windows Ink as transparent PNG image - missing highlighter strokes

I'm trying to include Windows Ink in a UWP app, and started by adapting the Windows Ink tutorial app to save the drawn strokes as PNG image (instead of GIF / ISF). So, the XAML view includes a Windows.UI.Xaml.Controls.InkToolbar and a…
andreask
  • 4,248
  • 1
  • 20
  • 25
0
votes
0 answers

How to get inkStroke points Coordinates relative to device screen?

Class InkStroke contains a methond GetInkPoints() and the points Position attribute is ralative to inking area, I want to convert the points coordinates relative to screen device dpi, are there any methond in UWP can do this?
newszer
  • 440
  • 1
  • 4
  • 23
0
votes
1 answer

How Can I Convert a shape like rectangle or circle to stylus point collection in WPF?

My question has three parts: I Can draw shapes like line, Circle, Rectangle and .. on WPF Canvas. I want to use InkCanvas features like erasing and moving strokes. Is it possible to convert this shape to a collection of stylus points and add this…
user2551669
0
votes
1 answer

UWP InkToolbar can't be actived on app loaded

My UWP App has two inkToolbars. As is shown in the picture, the horizontal one is customized totally. It has some inkToolbarCustomToolButtons like "NewInk", "SaveInk","Settngs", and so on. The Vertical is half customized. It has some original…
Vincent
  • 3,124
  • 3
  • 21
  • 40
0
votes
1 answer

Save InkCanvas strokes without using SaveFileDialog (UWP)

In my UWP C# app I'm trying to save the strokes of an InkCanvas in a way that the user should be able to load the file and continue editing the strokes, is it possible to do this without asking the user to choose a location but rather by saving the…
Samuele Dassatti
  • 259
  • 3
  • 15
0
votes
1 answer

Draw arc between two lines. I need to calculate points

I can't find a way to drawing ARC between two lines. My constraint is : I have to calculate this Arc stroke points. Because i am using InkCanvas and i have to draw this arc point by point, i can't put any object to screen or canvas. So I know i can…
wikiCan
  • 449
  • 3
  • 14
0
votes
1 answer

UWP InkCanvas draw out of bounds

In my UWP App I am using an InkCanvas within a Popup. Everything is working great, but when the popup is not filling the whole screen i can draw outside of the popup. After saving the StrokeContainer to a file also the lines out of the bounds are…
M.D.
  • 273
  • 1
  • 5
  • 18
0
votes
1 answer

Drawing app - the easiest design

Well, I'm a newbie. I'd like to write an app in WPF. The main purpouse will be in drawing predefined elements/objects. Input from user is mostly realized by text boxes - numbers. But I'd like to add some kind of user input into drawing itself too +…
0
votes
1 answer

How to remove Custom Strokes added to a WPF InkCanvas DrawingContext knowing only the bounding rectangle?

So I have an InkCanvas to which I have added "custom strokes". I am at a complete loss as to how to erase custom strokes added to the InkCanvas through its DrawingContext. (Google has been of no help:( ) Making the assumption that I have a bounding…
Alan Wayne
  • 5,122
  • 10
  • 52
  • 95
0
votes
1 answer

WPF InkCanvas - Saved image is black

I'm learning WPF and C# at the moment, to do so I'm trying to implement a little drawing application. For this I'm using the InkCanvas and I want to save it as an .jpg ord .png image. I got the code for saving the InkCanvas from here: Convert WPF…
Hoargarth
  • 1
  • 1
0
votes
1 answer

UWP: How can I attach an image to an InkCanvas?

I have to capture a photo with camera or loading it from file into a canvas which should be edited for highlighting some stuff on it after that saved into a folder. As for now I use this:
mbob
  • 590
  • 1
  • 4
  • 22
0
votes
1 answer

Moving strokes between InkCanvas with background color change of only the strokes? (WPF)

Lets say I have three layers (from bottom to top), InkCanvas (the lowest z level), InkCanvas (used for writing), InkCanvas ( the highest z level, on top, used for drawing). In MVVM (WPF), how can capture of strokes from the highest z-level be…
Alan Wayne
  • 5,122
  • 10
  • 52
  • 95