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

wpf inkcanvas brush style

I have Application with standard Inkcanvas. Standard Application looks like Figure 1. and all application code (XAML) is here:
0
votes
2 answers

Scratching the color off a picture

I'm working on a project with the kinect (I'm adding in case someone has a good way to do using the kinect) but I think this is mostly some programming issue in C# and WPF. I want to make to have 2 pictures, one on top of the other and with a mouse…
adlescouflair
  • 29
  • 1
  • 7
0
votes
1 answer

Remove higlight from Ink Strokes added to InkCanvas

After adding a stroke to my InkCanvas's Strokes it appears as "highlighted". It isn't selected though, so when I tried to clear the selection it did not remove the highlight. This is how I am adding the stroke to the…
Frinavale
  • 3,908
  • 10
  • 44
  • 74
0
votes
2 answers

Get X Y coordinates of elements within an InkCanvas in WPF

I have an InkCanvas which has it's children programmically added in through C#. They are not set with InkCanvas.LeftProperty or InkCanvas.TopProperty. I was wondering if it was at all possible to get these default X and Y values of the elements.…
Nilu
  • 245
  • 1
  • 4
  • 17
0
votes
1 answer

Create line joining two points on wpf InkCanvas

I have a wpf ink canvas. i need to draw a line that connects two points on it. The scenario is that when i click on inkcanvas, my line should start and at mousedown event or so, that straight line should get created. please help. thank you.
Priyanka
  • 475
  • 6
  • 17
0
votes
1 answer

InkCanvas: How to erase by Stroke on right mouse click

I have an InkCanvas that works in the InkCanvasEditingMode.Ink. But I want to erase the entire stroke when the user presses the right button. Help me with an advise, please?
Lullaby
  • 427
  • 9
  • 23
0
votes
0 answers

How to record an inkCanvas, save inkcanvas as animation or video?

using C#, I want to save what the user draw in an ink canvas as an animation or video, just like the iPad app Show Me
AMTourky
  • 1,190
  • 13
  • 25
-1
votes
2 answers

How to synchronize two InkCanvas-es drawings?

I am trying to develop an application which shows WPF InkCanvas drawings on remote host. Basically it synchronizes local InkCanvas with several remote hosts. I have subscribed to StrokesChanged event: …
Vasyl Boroviak
  • 5,959
  • 5
  • 51
  • 70
-1
votes
1 answer

Wrong order of redo and undo strokes?

I want to implement undo and redo of inkcanvas strokes. I want to implement redo and undo that can operate multiple times in a row. I don't know where is the problem with my code. Please help me. My code is as follows: xaml:
LSQ
  • 52
  • 9
-1
votes
1 answer

mvvm wpf UI of InkCanvas does not updates

Im trying to draw on InkCanvas so the drawing will displays in all connected users and vice versa, but the UI does not updates with new drawings. Im sending StrokeCollection as a MemoryStream in the StrokeCollected event to the server…
Kosta
  • 9
  • 2
-1
votes
1 answer

Copying ink strokes between inkcanvas with different sizes

I'm trying to copy inkstrokes between different inkcanvas. So far that's what I tried. ///Getting strokes from the first inkcanvas public StrokeCollection MyStrokes; MyStrokes = BigInkCanvas.Strokes; ///Trying to restore the strokes…
-1
votes
1 answer

WPF InkCanvas draw even on space beyond bounds of Clip. Override Hit Test

I am using InkCanvas.Clip property to clip my InkCanvas to the shape I need (I am using PathGeometry for that). I can only start drawing in this area, but I want to be able to start drawing outside of it. Of course, stoke parts beyond this area…
IntegerOverlord
  • 1,477
  • 1
  • 14
  • 33
-1
votes
1 answer

WPF Zooming with Slider Changing ScrollViewer Size

I currently have the following code:
Sakamoto Kazuma
  • 2,573
  • 7
  • 34
  • 75
-1
votes
1 answer

how to draw two strokes in same time in uwp?

I try to draw two line in PointerMoveEvent from Canvas but result is not as good as using InkCanvas. Is it possible use InkCanvas to reach this? private void Canvas_PointerPressed(object sender, PointerRoutedEventArgs e) { // Get…
-1
votes
1 answer

Set InkCanvas Background DrawingBrush via C#

I want to set the following XAML attributes via C#:
Snr Naldo
  • 113
  • 1
  • 12
1 2 3
19
20