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
1
vote
1 answer

Saving Ink Canvas to stream results in blank .GIF

I am writing a UWP app in C# - it will be a Flashcard application that features two InkCanvases for the "front" and "back" of the cards. The InkCanvas functionality seems to be working fine. The issue is that, when I go to "save" the InkCanvas's…
dxh9845
  • 23
  • 4
1
vote
1 answer

WPF : how to save stroke collection to bitmap?

I use InkCanvas to implement signature function. after signed, I can use RenderTargetBitmap class to save the signature-drawing into bitmap. but RenderTargetBitmap always save InkCanvas itself, means can not save ONLY the signature content. my…
Oh My Dog
  • 781
  • 13
  • 32
1
vote
2 answers

Send InkCanvas signature using WCF call

I have a Windows 10 UWP app that will run on Windows 10 Mobile. A requirement I have is to capture a signature from the user. So far, I am simply using an InkCanvas in XAML and have it wired up to my code behind. I then have a button that when…
1
vote
0 answers

UWP - Custom Undo and Redo on InkToolbar on a InkCanvas - System.ExecutionEngineException was unhandled

Trying to create a custom undo and redo on the InkCanvas. However after some stress testing (add a lots of strokes, undo and redo a lots of times), the app crashes with: System.ExecutionEngineException was unhandled. HResult=-2146233082 on the…
Jennifer
  • 15
  • 2
1
vote
1 answer

UWP and InkToolbar: how to draw basic shapes

I work on a UWP app where the user must be able to take a photo from the camera, and add details by drawing some shapes. I think the simplest way to do this is using the InkToolbar. So I've donwloaded the official sample: SimpleInk But I don't see…
Gold.strike
  • 1,269
  • 13
  • 47
1
vote
1 answer

Crop inkCanvas drawing from a particular area, Windows Universal App

I have managed to obtain the x,y,height,width of the area that I need to crop from the drawing on the inkCanvas. but I am not able to find the right solution to crop that area and save it as an image. Edit: here is the whole story: I developed a…
saira
  • 23
  • 5
1
vote
1 answer

Event Handlers not working with inkCanvas in Windows Universal App

I am not able to make PointerPressed, PointerReleased (any pointer event) work. I have written this line of code to support touch inkCanvas.InkPresenter.InputDeviceTypes = CoreInputDeviceTypes.Mouse | CoreInputDeviceTypes.Touch; from the solutions…
saira
  • 23
  • 5
1
vote
1 answer

UWP InkCanvas crashing unexpectedly with a XAML Parse Exception

Whilst using the InkCanvas in an app I'm currently developing I found after moving between pages that had InkCanvases on them the app would crash with a Xaml Parse Exception. It seemed random, however I created a simple app to get rid of as many…
jsmyth886
  • 531
  • 7
  • 15
1
vote
3 answers

WPF InkCanvas inherit class

I want to create an custom InkCanvas Adorner and found the logic behind: You can re-use the existing lasso functionality of the InkCanvasEditingMode.Select mode. Then, in the SelectionChanged event, you can get a reference to the selected strokes…
Richi S.
  • 143
  • 1
  • 2
  • 10
1
vote
1 answer

Wpf inkcanvas Save and Retrieve text

Hi I am trying to implement a mspaint like application in wpf.I have successfully implemented most of the basic drawing functionalities by implementing a custom stroke class.Now I am trying to implement the Text inserting option from mspaint.I have…
biju
  • 17,554
  • 10
  • 59
  • 95
1
vote
4 answers

Drawing Basic Shapes in WPF InkCanvas

I am working on a paint like application in wpf.I want the users to be able to add some drawings over images or plain surfaces.Also i want to draw some basic shapes like line,ellipse or a rectangle.I am trying to work with an inkcanvas,where i can…
biju
  • 17,554
  • 10
  • 59
  • 95
1
vote
1 answer

(Composite) Geometry confusion in c#

I'm trying to create 1 complex composite shape on an InkCanvas, but I must be doing something wrong, as what I was expecting to happen, is not. I've tried several different incarnations of accomplishing this. So I have this method. private void…
Ed Z
  • 13
  • 2
1
vote
1 answer

Overlay an InkCanvas on a custom WinForms control

I have a custom WinForms control that displays some graphics. I need to overlay an InkCanvas on top of this control. The InkCanvas should be "see through" (transparent background, visible ink). This InkCanvas allows the user to sketch on the…
Maghoumi
  • 3,295
  • 3
  • 33
  • 49
1
vote
2 answers

WPF InkCanvas access all pixels under the strokes

It seems that WPF's InkCanvas is only able to provide the points of the stroke (independent of the width and height of the stroke). For an application, I need to know all the points that are drawn by the InkCanvas. For instance, assume that the…
Maghoumi
  • 3,295
  • 3
  • 33
  • 49
1
vote
1 answer

Get acces to an Inkcanvas child

I am trying to develop an app which is able to drag some objects into inkcanvas. these objects must have the capability of selection, change position , mayebe resize and so on. Can any one help me on this question? Is there any way to get access to…
Samira
  • 11
  • 3