Notifications
Clear all

[Closed] Wacom Tablet Pressure?

Have you looked into using the InkCanvas control? I was toying with that a while back and recall it having the ability to access the pressure / sensitivity of the stylus. Don’t quote me on that though…

 PEN

Don’t know where you are searching but I didn’t come up with that one. I will have a poke at it Denis. Thanks for finding that.

1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

i didn’t really search. i was following some logic.
#1 when i played/worked with WPF controls i remembered some stylus related events
#2 i’ve double check events for the canvas class (which the basic for most controls)
#3 i’ve checked received arguments ( StylusEventArgs)
#4 there is nothing interesting in the properties
#5 there is only one interesting method – GetStylusPoints
#6 checked what StylusPoint is
Bingo! i found a proprety – PressureFactor
all other is just a matter of technique

 PEN

Then again it might not do what I want as I want the pressure over the Max viewport and not a wp window. I’ll see if I can adapt it.

i’ve expected that… that needs a little more information about how you want to start this mode. technically we can simulate a stylus event of any wpf control, and using Stylus Capture continue the receiving of the stylus messages…

 PEN

I’m not using any dotNet. I think that I should just use thePainterInterface.

1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

boooooring…
i’m just kidding. seriously i would use the paint interface. my principle is to stay with MXS as long as the task allows.

 PEN

I don’t like giving up either but quite frankly I’m jumping through hoops to get this to work and I don’t need to if I had just used thePainterInterface in the first place.

Page 2 / 2