摘要:
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//////奇 阅读全文
摘要:
// 柔化效果 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.. 阅读全文