2011年11月17日
摘要: 加载的本地资源有两种情况:一:加载程序集里面的资源信息 1.加载html资源 (1) StreamReader reader=Application.GetResourceStream(New Uri("path",UriKind.Relative).Stream; webBrowser.NavigateToString(reader.ReadToEnd()); (2) 引用命名空间: Microsoft.Xna.Framework; StreamReader reader = new StreamReader(TitleContainer.Open... 阅读全文
posted @ 2011-11-17 15:52 Games 阅读(8273) 评论(0) 推荐(1)
摘要: 以下两个方法分别用来完成对图片的存储以及还原显示:一:存储图片 public static string ImageSave(string ISFileName, Image SLImage) { var ISAccErr = "独立存储文件系统访问失败。"; var Rlt = ""; var WBmp = new WriteableBitmap(SLImage.Source as BitmapSource); var Buf = new byte[2 * 4 + WBmp.Pixels.Length * 4]; BitConverter.GetByt 阅读全文
posted @ 2011-11-17 10:28 Games 阅读(331) 评论(0) 推荐(0)