Quantcast
Channel: Active questions tagged inkcanvas - Stack Overflow
Browsing index pages (35 articles)

WPF-InkCanvas undo operation after performing inkCanvas1.Strokes.Erase()

I have a below codeprivate void inkCanvas1_OnTouchMove(object sender, TouchEventArgs touchEventArgs){ StylusShape EraseShape = (StylusShape)new RectangleStylusShape(20, 20, 0); List<Point>...

View Article


Newtonsoft.Json.JsonSerializationException: Unable to find a constructor to...

I'm trying to save strokes and children from a WPF InkCanvas. I managed to get the file to save, but now I can't load it. It throws this...

View Article


Ho to keep InkCanvas strokes inside InkCanvas in UWP

Consider the following InkCanvas on a UWP app, which is the only element inside a Grid (omitted for conciseness)<InkCanvas x:Name="inkCanvas" Width="500" Height="500"/>Draw a stroke which starts...

View Article

How can I add zooming a Grid with inkCanvas and Canvas in UWP app?

I'm writing an inking UWP app in C#/XAML and would like to implement a Microsoft Whiteboard-like zooming inkCanvas and Canvas for shape/text recognition. I have a Grid with an ImageBrush background...

View Article

Microsoft Ink Analysis API on 64-bit Windows

I am trying to achieve handwriting shape recognition in my 64-bit WPF application using the .net framework 4.7.2. The Ink Analysis API documentation says32-bit Support OnlyNote that the Ink Analysis...

View Article


Issue with InkCanvas in UWP: Working on Windows 11 but Not on Windows 10

I've developed an image editor using the InkCanvas control in my UWP (Universal Windows Platform) application. Surprisingly, it works perfectly fine on Windows 11. However, when testing the app on...

View Article

Image may be NSFW.
Clik here to view.

Image not displaying in ContentDialog when using InkCanvas for drawing in UWP

I'm facing an issue while trying to open an image in a UWP ContentDialog and allowing users to draw on it using InkCanvas. The problem is that the image does not appear on the dialog, and I'm...

View Article

How to calculate Scale and Offset when saving and loading InkCanvas Stroke of...

<InkCanvas x:Name="CurrentPage" PreviewMouseDown="CurrentPage_PreviewMouseDown" PreviewMouseUp="CurrentPage_PreviewMouseUp"><InkCanvas.Background><ImageBrush x:Name="CurrentPageImage"...

View Article


Create a WPF RawStylusInput event?

I have a custom hardware device, which reports some coordinates through custom API.What I wantedI want to show hardware coordinates on WPF as ink, in real-time.My thoughtsReading Creating an Ink Input...

View Article


UWP: Ink Canvas Not Rendering With 3D Projection / Can I rasterize InkCanvas?

I created a UWP project and am using InkCanvas to capture and render input from a Microsoft Surface pen.All of it works, until I apply a 3D projection to the <Grid> element housing the...

View Article

Image may be NSFW.
Clik here to view.

Broken cursor in InkCanvas (WPF)

I created simple application with drawing canvas (InkCanvas) in C# WPF, which look like this (normal):But when I run same application on VirtualMachine (Windows 10 in VirtualBox), cursor looks...

View Article

UWP InkCanvas no "EditingMode" or "DefaultDrawingAttributes" properties

I am building a react-native module in c#. I want to create an InkCanvas. My XAML-File looks like...

View Article

Image may be NSFW.
Clik here to view.

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...

View Article


WPF InkCanvas unable to Select items when using Touch and EditingMode is...

My question is how to Select items in InkCanvas using Touch when the parent control and inkcanvas IsManipulationEnable = true.I am experiencing an issue with InkCanvas that will not show the Select...

View Article

Clear an InkCanvas [UWP]

I want to add a button to my UWP app that removes all the strokes from an InkCanvas, but the suggested method inkCanvas.InkPresenter.Strokes.Clear() isn't recognized as a valid command, is it obsolete...

View Article


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...

View Article

WPF MVVM How can I update the UI when receiving new/updated Ink Strokes...

Im binding and sending ink strokes as MemoryStream objects using TcpClient, TcpListener but when Im receiving the updated strokes how can I update the UI.ViewModel :(added INotifyPropertyChanged that...

View Article


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,...

View Article

Performance problem of creating Strokes for an WPF InkCanvas programmatically

I asked a question in Cancel touch event on InkCanvas (.Net Framework) and didn't got an answer, so I tried to set the InkCanvas to HitTestVisible to false and get the StylusPoints over an API of the...

View Article

Image may be NSFW.
Clik here to view.

Resize an already drawn Inkstrokes in InkCanvas

I am drawing a rectangle boundary after selecting a specific stroke that I have drawn with a mouse click. After that, I want to resize the rectangle via dragging the corners of the rectangle. At the...

View Article
Browsing index pages (35 articles)


Latest Images