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

How to save a full-screen ink file in uwp?

I have a question about saving ink file (including ink's meta data file .gif) in uwp. (ink means that something user drawn) Currently, I can only save the range of ink that it's part of the inkcanvas, not full - screen…
Kay
  • 173
  • 14
0
votes
1 answer

How to set the stroke opacity for InkCanvas pen color?

How to set the opacity for ink stroke in the UWP?
Santhiya
  • 191
  • 2
  • 14
0
votes
1 answer

Scaling Canvas InkStrokes

I am taking a photo with the camera, using it as the background for an InkCanvas, and letting the user draw overtop. When the user saves their drawing, I am scaling the drawing to match the size of the image in the background. I can not resize the…
Seige
  • 304
  • 5
  • 27
0
votes
1 answer

Draw ink on 2 inkCanvases at the same time

I am implementing multi-touch application. I have 2 inkcanvases that EditingMode is "Ink". If I draw ink on 2 inkcanvases at the same time, it 's not working. I can draw ink on only one inkcanvas at a time.
Hong Lim
  • 133
  • 1
  • 4
  • 12
0
votes
0 answers

UWP inkCanvas infinite surface same as microsoft whiteboard application

I saw Microsoft's whiteboard today and I like the base inkCanvas(it's my guess) control of it. and I decide to create a control in UWP app using inkCanvas which behaves similar as Microsoft's whiteboard UWP application. Microsoft UWP Whiteboard -…
0
votes
1 answer

How to use "gesture" in UWP inkcanvas

Hello I want to add some customized gesture (i made) functions on inkcanvas But I don't know how to do that when the inputdevicetype is touch like this inkcanvas.InkPresenter.InputDeviceTypes = Windows.UI.Core.CoreInputDeviceTypes.Touch; when the…
Kay
  • 173
  • 14
0
votes
1 answer

How to remove the InkStroke when using the ActiveCustomDrying in uwp?

I used the ActiveCustomDrying to customize the ink, now I want to remove them InkStrokes. StrokeContainer is null because of active the CustomDrying, so I am unable to remove the InkStrokes by using the DeleteSelected method. Can anyone suggest me…
Santhiya
  • 191
  • 2
  • 14
0
votes
1 answer

How to switching between InkCanvas and Canvas in UWP

I'm struggling with new UWP InkCanvas for my apps.If you are familiar with the new InkCanvas in UWP, I would truly appreciate your help. I have a UWP apps need to switching between InkCanvas and Canvas, which I wish to use InkCanvas for Drawing,…
luvwinnie
  • 499
  • 1
  • 6
  • 23
0
votes
1 answer

Can't set InkToolbarRulerButton background as transparent using InkToolbar

I create a ink toolbar, and the initial controls are all except pens. I can set the eraser button's background as transparent, but apply to the ruler button. Is this a ink toolbar bug?
Vincent
  • 3,124
  • 3
  • 21
  • 40
0
votes
1 answer

InkCanvas and Image Save/Load On Overloaded StrokeCollection

I'm working on an application that has an InkCanvas, an image that is set as the background image to the InkCanvas, as well as numerical data (one positive integer value per Stroke) that is tied into each Stroke on the InkCanvas. My first mental…
Sakamoto Kazuma
  • 2,573
  • 7
  • 34
  • 75
0
votes
2 answers

How can I draw a Circle with InkStroke?

I have an InkCanvas. I need to a Circle draw as InkStroke. I know, i can a Circle or Ellipse draw with InkAnalyzer, but i need that Circle as InkStroke in InkCanvas, not in Canvas and i don't want to the protractor use. I need somehow a right…
Beyru
  • 13
  • 3
0
votes
1 answer

Image gets mangled when saving InkCanvas to byte array to file

I have a WPF application using InkCanvas. When I render the bitmap, save to a memory stream, write the resulting bytes to a file, and then open that file in paint, the image is mangled. Any idea what I may be doing wrong here? Tried several…
joelc
  • 2,687
  • 5
  • 40
  • 60
0
votes
1 answer

Save InkToolbar options

I need to get and store all the values of an InkToolbar in order to retrieve them the next time the user loads the app. These values are: last selected tool, tip dimensions, and color. The problem is that I can't get these values since I didn't find…
Samuele Dassatti
  • 259
  • 3
  • 15
0
votes
1 answer

Saving Image In UWP Then Loading In WinForms

Good morning StackOverflow, I come to you today with a scenario that is driving me slowly insane. Im hopeful you can aid me with this, as I’m certain this must be possible but I can’t solve it myself. My issue is that I’m working on two different…
Alexis
  • 13
  • 5
0
votes
1 answer

How to show image outside inkcanvas

I have canvas called "drawCanvas" to show images and inkcanvas that is contained in the canvas called "CanvasContainInkCanvas". I can zoom out by using MatrixTransform. //Get the image that's being manipulation. Canvas element = (Canvas)e.Source; …
Hong Lim
  • 133
  • 1
  • 4
  • 12