|
| | |||||||
| Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications. |
| | LinkBack | Thread Tools |
| |||
| 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. |
| |||
| 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. > |
| Bookmarks |
| Thread Tools | |
| |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |