Re: About Ink drawing with wacom tablet
Re: About Ink drawing with wacom tablet
- Subject: Re: About Ink drawing with wacom tablet
- From: Kevin Gessner <email@hidden>
- Date: Mon, 3 Nov 2008 17:01:05 -0500
If you use NSEvent to get a tablet event, the absoluteX, absoluteY,
and absoluteZ will give you position information. I believe that it
will be independent of the image view coordinates. You could construct
a path from that, and even include the pressure and rotation
information as well (though maybe not directly into NSBezierPath).
HTH,
-- Kevin
Kevin Gessner
http://www.kevingessner.com
email@hidden
On Nov 3, 2008, at 4:54 PM, john chen wrote:
Hi all,
I am working on to implement a signature feature in a cocoa
application. I
have an NSImageView, and the goal is for user to sign their names
using
wacom tablet and the signature would be drawn on the NSImageView. I
was
wondering if there is an API (from Ink, or wacom ...) that once user
is done
drawing on the tablet, I can call the API to get a NSImage, or
a NSBezierPath so I can draw directly onto the NSImageView ?
I saw there is post on cocoa-dev list,
http://www.cocoabuilder.com/archive/message/cocoa/2006/1/26/155365,
but I
haven't figured out how to do it in my cocoa application.
At this point, since I haven't figure out how to get the information
from
ink, I treated the pen as mouse and checking mouseDown event to draw
a NSBezierPath, which doesn't work well when the pen is outside the
NSImageView.
Thanks , I appreciate any help!
John
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden