如何在全屏C#中显示图像 [英] how to Display the image in Full screen C#
本文介绍了如何在全屏C#中显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试以全屏显示图像,但代码无法正常工作。
String imagepath = @C:\\\\ image1;
pictureBox1.BorderStyle = BorderStyle.None;
pictureBox1.Dock = DockSytle.None;
PictureBox1.Width = this.Width;
pictureBox1.Height = this.Height;
pictureBox1.Left = screen.primarySreen.Bounds.width - this .Width;
pictureBox1.Top = screen.primarySreen.Bounds.Height - this.Height;
windowstate = FormWindowState.None;
pictureBox1.Load(imagepath);
解决方案
check Picturebox全屏显示 [ ^ ]
I'm trying to display image in Full Screen,but the code is not working properly.
String imagepath=@"C:\\image1"; pictureBox1.BorderStyle= BorderStyle.None; pictureBox1.Dock=DockSytle.None; PictureBox1.Width= this.Width; pictureBox1.Height= this.Height; pictureBox1.Left= screen.primarySreen.Bounds.width - this .Width; pictureBox1.Top= screen.primarySreen.Bounds.Height - this.Height; windowstate = FormWindowState.None; pictureBox1.Load(imagepath);
解决方案
check Picturebox fullscreen display[^]
这篇关于如何在全屏C#中显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文