Wednesday, August 26th, 2009p>The infamous excanvas has had a Silverlight bridge for some time. It is faster, yet has some artifacts and most people stick with good ole VML.
David Anson has put his hat in the ring by creating a new prototype canvas implementation in Silverlight.
I did not attempt to implement the complete canvas specification. Instead, I implemented just enough to support the first 5 (of 6 total) Mozilla sample pages as well as the handful of applications shown above. Specifically, I’ve implemented everything that’s not in italics in the feature list at the beginning of this post. Thinking about what it would take to add the stuff that’s not implemented: text and pixel-level manipulation are both directly supported by Silverlight and should be pretty easy. Shadows seem like a natural fit for Silverlight’s pixel shader support (though I haven’t played around with it yet). All that’s left is layer compositing, which does worry me just a little… I haven’t thought about it much, but this seems like another job for WriteableBitmap, perhaps.
David gets a ton of the examples going though, and I am still hopeful that someone will continue work on this kind of shim to make a fast implementation. I need to go off and test Bespin.
Posted by Dion Almaer at 6:18 am