请教怎么对网上图片编辑后保存。
图片是 www.google.com/images/a.jpg. 实际物理路径不知道。我想对其编辑保存怎么处理? --------------------编程问答-------------------- 先下载,再编辑,再保存 --------------------编程问答-------------------- 是这样的,我有个图片编辑器,里面路径都是保存其他网站的链接地址,我想对其进行操作。所以不能下载下来。 --------------------编程问答-------------------- 用流读取,然后save --------------------编程问答-------------------- 原来是这样的:
filepath=“d:\images\a.jpg” 物理路径,
Bitmap b = new Bitmap(filePath);
我现在想:
url="www.xxx.com/images/a.jpg";
然后弄成bitmap .请高手指点下,最后有点源码。 --------------------编程问答-------------------- 顶起来 --------------------编程问答--------------------
WebClient web = new WebClient();
byte []buff= web.DownloadData("http://www.xxx.com/images/a.jpg");
web.Dispose();
System.IO.MemoryStream ms = new System.IO.MemoryStream(buff);
Bitmap bmp = new Bitmap(ms);
补充:.NET技术 , C#