Quantcast
Channel: Active questions tagged inkcanvas - Stack Overflow
Browsing latest articles
Browse All 30 View Live

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



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

Loading an image to an ink canvas, editing the image with drawing and then...

Currently I have a simple application where one button loads an image into an ink canvas as its background; as shown here:private void Button_Click(object sender, RoutedEventArgs e){...

View Article

C# WPF rendering true monochromatic image from ink canvas

I am loading an image into an ink canvas, the input image is always monochromatic, I am then drawing on that image with a white pen and intending to save it.When the image is loaded some of the...

View Article

Render an Image from a StrokeCollection in c#

I need to get an Image from a StrokeCollection, but have no access to the Visual (InkCanvas) itself because of the mvvm structure. Is there possibly an easy way to get this done?XAML:<InkCanvas...

View Article


Image may be NSFW.
Clik here to view.

how to save work done on canvas using InkCanvas to an image file in UWP C#?

I want to save my work done on a canvas in my UWP app. I am using InkCanvas to draw lines on an selected image inside the canvas and I want to save the canvas work to a new image file.I am getting a...

View Article

Image may be NSFW.
Clik here to view.

How to create an linecap using inkcanvas in C# ? also I want the line to be...

My work to create a line is:XAML code<Viewbox x:Name="Img_VB" HorizontalAlignment="Center" VerticalAlignment="Top" Stretch="Uniform"><ScrollViewer x:Name="rootScrollViewer" ZoomMode="Enabled"...

View Article

Highlighter Ink Strokes Not Rendering onto Canvas Control

I'm trying to implement inking functionality using 'InkToolbar'& 'InkCanvas'. I want to be able to access the ink strokes as well, so I have activated custom drying on the InkCanvas as well.Pen ink...

View Article


C# UWP Render InkStrokes in InkCanvas Seperately

enter image description hereI have captured points data from bamboo slate,and converted them to Windows.UI.Input.Inking.InkStroke data.Then I put them in a InkPresenter.StrokeContainer rendered like...

View Article


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

View Article

Image may be NSFW.
Clik here to view.

Draw the content of a textbox

I have a textbox on top of an image overlay, which the user can interfere with. Now I want to draw the string onto that image via Graphics, but if I use the direct values of the box for drawing, the...

View Article

UWP drawing over an image and saving to DB

First of all, a disclaimer: I'm pretty new to UWP and C# (I've used C and C++ in the past, but most of my coding experience is in Java, and it has been a few years since I've done any coding...

View Article

UWP InkCanvas capture events but don't display them

I have recently modified a fork of the vmulti project https://github.com/djpnewton/vmulti locally to work in Windows 10 with VS2019 Community, and have made some improvements to it including adding tip...

View Article


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

View Article

Cancel touch event on InkCanvas (.Net Framework)

I have an InkCanvas and a touch screen on a specific touch display.This display is able to capture stylus events. Sadly it also captures touch events. On some occassions this is completly ok. But when...

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

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


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

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

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

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


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


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

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.

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

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

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

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



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
Browsing latest articles
Browse All 30 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>