| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1701 人关注过本帖
标题:请高手帮忙,如何把员工照片显示在picturebox
只看楼主 加入收藏
oldstonegjs
Rank: 1
等 级:新手上路
帖 子:13
专家分:0
注 册:2005-4-23
收藏
 问题点数:0 回复次数:13 
请高手帮忙,如何把员工照片显示在picturebox
本机可以实现,用picturebox1.image=image.fromfile
 但网上其它机器就看不到,如何解决,请指教
先谢了
搜索更多相关主题的帖子: picturebox 员工 照片 机器 
2005-04-23 08:50
littleh
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2005-4-16
收藏
得分:0 
把照片的格式转为bmp就行啦,picturebox的image属性只支持两种格式图片

2005-04-23 08:55
oldstonegjs
Rank: 1
等 级:新手上路
帖 子:13
专家分:0
注 册:2005-4-23
收藏
得分:0 
照片只存放在一台机器之中,网上其它机器怎么浏览
2005-04-23 09:01
yushengou
Rank: 1
等 级:新手上路
帖 子:401
专家分:0
注 册:2005-3-30
收藏
得分:0 
以下是引用littleh在2005-4-23 8:55:00的发言: 把照片的格式转为bmp就行啦,picturebox的image属性只支持两种格式图片
它支持所有的格式的。

我是初学者,希望大家能多多帮助我 /bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs./bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif');}" onmousewheel="return imgzoom(this);" alt="" />
2005-04-23 09:09
oldstonegjs
Rank: 1
等 级:新手上路
帖 子:13
专家分:0
注 册:2005-4-23
收藏
得分:0 
fromfile(文件的路径和文件名)比如是c:\001.bmp
可其他机器的c:中无此文件呀
2005-04-23 09:18
yushengou
Rank: 1
等 级:新手上路
帖 子:401
专家分:0
注 册:2005-3-30
收藏
得分:0 
是啊。所以不能看咯

我是初学者,希望大家能多多帮助我 /bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs./bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif');}" onmousewheel="return imgzoom(this);" alt="" />
2005-04-23 09:20
oldstonegjs
Rank: 1
等 级:新手上路
帖 子:13
专家分:0
注 册:2005-4-23
收藏
得分:0 
有什么办法吗
2005-04-23 09:22
live41
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:67
帖 子:12442
专家分:0
注 册:2004-7-22
收藏
得分:0 
用stream通过协议传送过去。不过你的主机的图片别人也得不到啊。
2005-04-23 12:11
oldstonegjs
Rank: 1
等 级:新手上路
帖 子:13
专家分:0
注 册:2005-4-23
收藏
得分:0 
问题已解决,不敢独享,拿出来和大家共享 pictureBox1.Image = new Bitmap((new System.Net.WebClient()).OpenRead("ip地址/文件名.jpg")); 还是感谢大家帮助
2005-04-23 13:51
jidegang
Rank: 1
等 级:新手上路
帖 子:91
专家分:0
注 册:2005-5-14
收藏
得分:0 
这个不是最好的解决办法啊,如果网络有问题或者延迟太长会报告异常的.
picturebox1.image=image.fromfile("..\\文件名.bmp");
然后把图片放在和程序一起的文件里
2005-05-15 01:53
快速回复:请高手帮忙,如何把员工照片显示在picturebox
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.029485 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved