C#写入文本文件,避免乱码Encoding.GetEncoding("gb2312")
摘要:StreamWriter sw = new StreamWriter(@"C:\Users\jyzdzx\Desktop\处理2\jieguo\"+DateTime.Now.ToString("yyyy-mm-dd-hh-mm-ss")+".csv", false, Encoding.GetEncoding("gb2312"));
阅读全文
posted @
2013-05-23 16:08
qqhfeng16
阅读(5308)
推荐(0) 编辑
C#中如何控制播放音乐的声音大小
摘要:C# code:[DllImport("winmm.dll", SetLastError=true, CallingConvention=CallingConvention.Winapi)] public static extern int waveOutSetVolume(int uDeviceID, int dwVolume); //Call waveOutSetVolume( 0, 100 );第一个参数可以为0,表示首选设备第二个参数为音量:0xFFFF为最大,0x0000为最小,其中高位(前两位)表示右声道音量,低位(后两位)表示左声道音量int iVolume=
阅读全文
posted @
2013-05-14 13:53
qqhfeng16
阅读(742)
推荐(0) 编辑
基于给定的矩形设置图像的ROI(感兴趣区域,region of interesting)
摘要:基于给定的矩形设置图像的ROI(感兴趣区域,region of interesting)
阅读全文
posted @
2013-05-05 23:47
qqhfeng16
阅读(250)
推荐(0) 编辑