Try this
var img = new WriteableBitmap(myCanvas, null);

http://blog.blueboxes.co.uk/2009/07/21/rendering-xaml-to-a-jpeg-using-silverlight-3/


C
heck this is correct answer if it helped