Custom Ink Rendering in Silverlight 2

Drawing ink with the built-in stroke objects works great for handwriting and annotations. In some scenarios, however, you may want something more fancy that takes advantage of Silverlight’s rich graphics capabilities. Creating ink strokes with a customized appearance is fairly straight forward with Silverlight 2. You basically collect StylusPoints in mouse events as usual, but…

3

Erasing Ink in Silverlight 2

Another frequently asked question around inking in Silverlight is about erasing Ink strokes after they have been collected or loaded. Unlike WPF or the Tablet SDK for COM & Winforms, Silverlight does not come with controls that have built-in eraser modes in the box. However, with a little bit of code-behind you can implement those…

3

Saving Ink to IsolatedStorage with Silverlight 2

One of the questions I have seen quite a few times in the Silverlight.net forums is how to persists (and de-persists) ink in Silverlight 2. Unlike WPF, Silverlight does not support a binary persistence format (ISF), but you can write some code to save and load ink to and from XAML. To demonstrate how to do…

1

TabletPC Development Gotchas Part 7: Detecting the input device in Silverlight 2

When writing an application that supports multiple input devices (mouse, stylus, touch) it is often neccessary to detect which type of device is sending the input events.Silverlight 1.0 offered a DeviceType property on the StylusInfo object that gets reported in every mouse event. In the Silverlight 2 managed API, you will not find an equivelnt object that…


Silverlight 2 Released – Write On!

Now that Silverlight 2 is released, I finally got around to updating my blog after a long time of silence. For those of you interested in handwriting and Tablet related technologies, I want to start out with a canonical example of a Silverlight 2 Inking application. There have been a couple of OM changes since…

5

Snipping Pictures with Silverlight

One of my favorite tools on the Tablet PC is the ‘Snipping Tool’. I have been using it frequently since the early XP days (back then we shipped it seperately as a Power Toy). Now in Vista, it’s part of the main OS and I find myself using it quite often event on my desktop PC….

4

Ink Reflections – in Silverlight

I have received several question from folks about my earlier post on Ink Reflections in WPF. People were curious how to accomplish the same or a similar effect in Silverlight, in the absence of the VisualBrush object. Clearly, WPF’s VisualBrush is the main object that enables scenarios like this and it definitely makes their implementation straightforward. However, in…


Rendering ink and image to a bitmap using WPF

To follow-up on my previous blog post and to complete the story about rendering ink onto pictures and saving the results as a bitmap file, I want to show how this is done in WPF. In WPF all rendering uses the pipeline – pictures, videos, ink, text, all gets rendered via WPF’s ‘Media Integration Layer’. As…

3

TabletPC Development Gotchas Part 5: Rendering ink and image to a bitmap using Winforms

Annotating pictures with handwriting or drawings is a fun and useful scenario for digital ink. In many cases the application user wants to create a new image file with the ink annotation “burnt” into the picture, so they can use the result of their work in other contexts and with other applications (e.g. attach the…

4

Annotating Video with Ink using Silverlight

Silverlight makes delivering video content in the browser very easy. Silverlight also has ink support built-in. So why not combine these two features to enable some great new scenarios? I have put together a little sample using Silverlight v1.0 to record and play back ink annotations, synchronized with the video playback. Below is the key…

4