- 积分
- 40165
- 好友
- 记录
- 主题
- 帖子
- 听众
- 收听
|
发表于 2013-4-14 11:12:09
|
显示全部楼层
[code=csharp]
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "http://reg.email.163.com/unireg/call.do?cmd=register.verifyCode&v=common/verifycode/vc_en&env=688344781174&t=1365908920674",//URL这里都是测试 必需项
Encoding = null,//编码格式(utf-8,gb2312,gbk) 可选项 默认类会自动识别
//Encoding = Encoding.Default,
Method = "get",//URL 可选项 默认为Get
ResultType = ResultType.Byte
};
//得到HTML代码
HttpResult result = http.GetHtml(item);
Image image = byteArrayToImage(result.ResultByte);
pictureBox1.Image = image;[/code]
http://www.sufeinet.com/thread-2380-1-1.html
另个楼主多看看教程,这个在教程里都有写到,怎么获取图片的方法教程里面有, |
|