摘要:
今天要对一个UserControl进行截图,因为该userControl 本身可能出现滚动条,因此采用一般的截屏的方式不可行,在网上找了找,结果发现了将该控件元素直接转换成byte[]的方法,然后再将byte[]换成相应的BitMapSource之类的图形元素。具体如下所示:public static byte[] GetJpgImage(UIElement source, double scale, int quality) { double actualHeight = source.RenderSize.Height; d... 阅读全文
posted @ 2012-12-18 20:03
生态圈_行者
阅读(850)
评论(0)
推荐(0)