开发者

Silverlight export canvas to image

开发者 https://www.devze.com 2022-12-27 22:03 出处:网络
I have Expression blend 4 and I want to create a button to开发者_JAVA技巧 export to an image file the current view in silverlight

I have Expression blend 4 and I want to create a button to开发者_JAVA技巧 export to an image file the current view in silverlight

Thanks!


You can render the Canvas to a WriteableBitmap and use this as the Source of an Image control:

var wb = new WriteableBitmap(myCanvas, null);
myImageControl.Source = wb;
0

精彩评论

暂无评论...
验证码 换一张
取 消