- 博客(3)
- 收藏
- 关注
转载 编程小计——消除Graphics图像边缘颜色不纯(抗锯齿)
在很多时候,我们都要绘制纯色的图片,而用Graphics生成的往往是不纯的,尤其是绘制文字时。比如说绘制纯红色文字,往往R达不到255。C#中默认抗锯齿,给人看起来柔和;但是我们现实中往往用到锯齿。C#中可以通过下面的方法解决Image bit = new Bitmap(400, 400);Graphics g = Graphics.FromImage(bit);...
2015-10-19 11:09:00
658
转载 adb服务无法启动
今天学习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...
2013-10-25 12:52:00
195
转载 读取项目中的图片文件
public BitmapImage ReadImageByResource(string url) { BitmapImage bitmapImage; try { Uri imgBoom = new Uri(url, UriKind.Relative)...
2013-05-28 16:00:00
586
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅