当前位置:编程学习 > C#/ASP.NET >>

display image in a full screen window?

--------------------编程问答-------------------- 那是告诉你DisplayPhoto的参数是一个路径,比如 DisplayPhoto("c:\xxxx.bmp") --------------------编程问答-------------------- You should replace it with file path and its name. You can either provide an absolute path or a relative path.

"../Images/xxx.jpg"
or
"/Images/xxx.jpg"
in your project.

or @"c:\images\xxx.jpg"
the @ proceeded the string indicates that the character '\' shouldn't be translated as an escape character. --------------------编程问答-------------------- 谢谢楼上两位 我前面在学校 不得已用英文发帖
我是菜鸟,我尝试了 displayForm.DisplayPhoto(f:\\photos\\熊猫.jpg)
果然能够实现全屏浏览这张照片


但我现在还有一个问题,就是我想能全屏预览picturebox里的我选中的图片,而不是仅仅“大熊猫”照片

请问我该怎么做呢?菜鸟谢谢楼上两位大哥了
--------------------编程问答-------------------- Sorry. I am not quite good at C#. Waiting for someone else to answer your question. --------------------编程问答-------------------- Display是自己实现的图片显示类吧,如果不是官方的,大家不可能知道,这个类实现了哪些功能,或者说这个类有没有实现图片预览。 --------------------编程问答-------------------- 红色部分的是告诉你要传递进去 图片文件的路径

 displayForm.DisplayPhoto("c:\logo.jpg")

--------------------编程问答--------------------
引用 6 楼  的回复:
红色部分的是告诉你要传递进去 图片文件的路径

 displayForm.DisplayPhoto("c:\logo.jpg")

谢谢 我题目有点烦,能不能加您QQ请教您,万分感谢
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,