摘要:        
usingSystem;usingSystem.Runtime.InteropServices;usingSystem.Collections.Generic;usingSystem.Text;namespaceNewPortTest{publicclassCommPort{//////端口名称(COM1,COM2...COM4...)COM2:///publicstringPort="COM1";//////波特率9600///publicintBaudRate=115200;//////数据位4-8///publicbyteByteSize=8;//4-8//////奇    阅读全文
posted @ 2014-01-14 19:35
花式炒饭
阅读(762)
评论(0)
推荐(0)
        
            
        
        
摘要:        
// 柔化效果 public Bitmap SmoothEffect(Bitmap bmpSource) { Color c = new Color(); Color c1 = new Color(); Bitmap bmp1 = new Bitmap(bmpSource); Bitmap bmp2 = new Bitmap(bmpSource); int i, j, xres, yres, rx, gx, bx; xres = bmpSource.Width; yres = bmpSource.Height; for (i = 1; i 255) rx = 255; if (gx 255..    阅读全文
posted @ 2014-01-14 19:23
花式炒饭
阅读(536)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号