• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Silverlight inkPresenter Woes

drebo

Diamond Member
So, I have this project for which I may need to allow drawing on a webpage. Silverlight seemed the hip, new awesome way to do it, so I started out.

Well, I can draw just fine. My only problem now is actually saving the ink that I've drawn.

Someone at Microsoft, in their infinite wisdom, decided not allow render and image encoder functions within Silverlight because they're "high security" functions. Well, I don't know who made that decision, but it sucks, because now saving ink is a royal pain in the ass.

My question to you all is what is the best way to save the ink? I can already take the Strokes and output them into a large set of points. But, that seems pretty inefficient to save in a database.

My thought is that I can post those points back to a ColdFusion document and create them into a JPG, but that seems kind of hokey.

Does anyone else here have any experience with Silverlight and the inkPresenter that can give me some guidance?
 
I proposed this question to one of the fellow UI developers at my place. She gave me this link: http://www.thedatafarm.com/blo...rimagestoapngfile.aspx. I am not sure if it's something you already came across, but the technique shown looks nimble in the sense that ultimately the image gets converted to a byte blob, which can be natively stored as a file or a varbinary in the DB.

Please post your thoughts, findings... this one looks intriguing.

!More power to the chicks out there!
 
Yeah, I'd seen that article.

My ASP.Net experience is at a level of about 0.0 out of 100, so I don't really feel comfortable copying her code, as I don't really understand the mechanism behind it. Besides, the front-end code is using Silverlight 1...I need Silverlight 2, and the conversion isn't exactly one-to-one.

I think I might have to end up using the ColdFusion post-back...which is fine, as I was intending to write the application in ColdFusion anyway. Was just hoping I could get the image created on the client-side. Would have saved a lot of headache. Oh well.

I'll post back with my findings later.
 
Back
Top