
C#.NET
思悟
逢人不计人间事
便是世间无事人
展开
-
C# 判断32位还是64位系统的一个简单方法(当然目标平台不能是x86)
public bool IsSys64bit() { if (IntPtr.Size == 8) return true; return false; }原创 2014-07-21 14:50:44 · 4010 阅读 · 3 评论 -
【自用】C# 字符串转颜色(如:#“FFFFFF” 转为 Color)
public Color String2Color(string f) //FFFFFF 2 color --ok { return Color.FromArgb(Convert.ToInt32("FF" + f, 16)); } 作者:一个吃货帅锅原创 2016-10-27 14:32:18 · 5928 阅读 · 2 评论 -
【自用】C# 中图片切换的几种过渡动画特效
//水平百叶窗 public void Effect_BaiYeH(Bitmap obmp, Bitmap bmp, PictureBox pic) { int step = 30; try { Bitmap bmp1 = (Bitmap)bmp.Clone(); int height = bmp1.Height / step; int width = bmp1.Width;原创 2016-10-27 14:34:53 · 5480 阅读 · 1 评论