摘要: 在很多时候,我们都要绘制纯色的图片,而用Graphics生成的往往是不纯的,尤其是绘制文字时。比如说绘制纯红色文字,往往R达不到255。C#中默认抗锯齿,给人看起来柔和;但是我们现实中往往用到锯齿。C#中可以通过下面的方法解决Image bit = new Bitmap(400, 400);Grap... 阅读全文
posted @ 2015-10-19 11:09 成群 阅读(3228) 评论(0) 推荐(0) 编辑
摘要: 今天学习android编程发现调试出错The connection to adb is down, and a severe error has occured.You must restart adb and Eclipse.Please ensure that adb is correctly located at 'C:\adt-bundle-windows-x86_64-20130917\sdk\platform-tools\adb.exe' and can be executed.进程中adb没有启动,手动启动adb报错:adb server is out of da 阅读全文
posted @ 2013-10-25 12:52 成群 阅读(641) 评论(0) 推荐(1) 编辑
摘要: public BitmapImage ReadImageByResource(string url) { BitmapImage bitmapImage; try { Uri imgBoom = new Uri(url, UriKind.Relative); StreamResourceInfo info = Application.GetResourceStream(imgBoom); bitmapImage = new B... 阅读全文
posted @ 2013-05-28 16:00 成群 阅读(489) 评论(0) 推荐(0) 编辑