摘要:
对于WP7中图形处理有关WriteableBitmap和BitmapImage之间的相互转换,给大家几个简单实用的方法。一、WriteableBitmap转为BitmapImage对象var bi= new BitmapImage(); bi.SetSource(wb.ToImage().ToStream()); //其中wb是WriteableBitmap对象。二、BitmapImage转为WriteableBitmap对象WriteableBitmap wb = new WriteableBitmap(bi.Source as BitmapSource); //这里就转换完成了三、将Wr. 阅读全文
posted @ 2011-12-22 14:41
博琼
阅读(855)
评论(0)
推荐(1)
摘要:
/// <summary> /// 将SL的image保存到独立存储文件系统 /// TFSoft - 2011/06/07 /// </summary> /// <param name="ISFileName">独立存储文件名</param> /// <param name="SLImage">需要保存的图片源(Silverlihgt image 组件引用)</param> /// <returns>无错返回空串,出错返回出错信息</returns> pub 阅读全文
posted @ 2011-12-22 13:56
博琼
阅读(346)
评论(0)
推荐(0)

浙公网安备 33010602011771号