2013年6月8日

摘要: 项目开发中,需要用到代码截取页面,存储为图片这样一个功能。实现起来并不难,代码也简单: 1 this.LayoutRoot.Arrange(new Rect(0d, 0d, 480, 800)); 2 WriteableBitmap wbmp = new WriteableBitmap(LayoutRoot, null); 3 string directory = "Shared/ShellContent/screenshot"; 4 string path = directory + "/" +...+ ".jpg"; ... 阅读全文
posted @ 2013-06-08 11:27 ljpass6754 阅读(177) 评论(0) 推荐(0) 编辑

导航