Technology Questions

Go Back   Technology Questions > Hardware Questions > Mobile Computers > Tablet PC > Tablet PC Software > Tablet PC Developers

Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 11-04-2007, 04:00 AM
pattboris@gmail.com
Newsgroup Contributor
 
Posts: n/a
IStrokeBuilder

Hi all,
I have a problem: we need to create offline stroke and render it in
realtime on screen. I know that there is IStrokeBuilder interface that
connects to RealTimeStylus, but there is NO such interface for C#. The
interface is defined in rtscom.dll.
*** Is there any way to connect to rtscom.dll intefaces in c#
(vs2005).
*** Someone used IStrokeBuilder in c#?

Thanks.
Boris.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 11-04-2007, 04:00 AM
  #2 (permalink)  
Old 11-06-2007, 04:30 PM
Josh Einstein
Newsgroup Contributor
 
Posts: n/a
Re: IStrokeBuilder

Hi Boris. You can easily create strokes "out of thin air" by using the
Ink.CreateStroke() method. There's two overloads. One uses a simply array of
integers where the first is the x coordinate of the first point, the second
is the y coordinate of the first point, and then x, and y, and so on for
each point in the stroke. This overload won't let you control things like
the pressure or other packets. But if you don't have this info anyway then
you don't need to worry about it.

The second overload uses a TabletPropertyDescriptionCollection which lets
you define the layout of the array to include additional properties. The
return value is a Stroke that you can use anywhere else in the tablet api.

--
Josh Einstein (Tablet PC MVP)
Einstein Technologies
Tablet Enhancements for Outlook - Try it free: www.tabletoutlook.com


<pattboris******.com> wrote in message
news:1194177199.877827.299840@v3g2000hsg.googlegro ups.com...
> Hi all,
> I have a problem: we need to create offline stroke and render it in
> realtime on screen. I know that there is IStrokeBuilder interface that
> connects to RealTimeStylus, but there is NO such interface for C#. The
> interface is defined in rtscom.dll.
> *** Is there any way to connect to rtscom.dll intefaces in c#
> (vs2005).
> *** Someone used IStrokeBuilder in c#?
>
> Thanks.
> Boris.
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 05:13 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0