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 width and height of the stroke are 16. Using this stroke size I paint a dot on the InkCanvas
. Is there a straightforward way to obtain all 256 pixels in this dot (and not the center point of this giant dot alone)?
Why I care:
In my application, the user uses an InkCanvas
to draw on top of a Viewport3D
which is displaying a few 3D objects. I want to use all the points of the strokes to perform ray casting and determine which objects in the Viewport3D
have been overlaid by the user's strokes.