<script type="text/javascript"> //思路分两步:作者(yanue). //1,匹配出图片img标签(即匹配出所有图片),过滤其他不需要的字符 //2.从匹配出来的结果(img标签中)循环匹配出图片地址(即src属性) var str = "this is test string <img src=\"http:yourweb.com/test.jpg\" width='50' > 123 and th…
/// <summary> /// 图片转成圆角方法二 /// </summary> private Bitmap WayTwo(Bitmap bitmap) { //using (Image i = new Bitmap(file)) using (Image i = bitmap) { Bitmap b = new Bitmap(i.Width, i.Height); using (Graphics g = Graphics.FromImage(b)) { g.DrawImag…