我将如何将窗口大小设置为窗口的全屏?
如何将窗口大小设置为“窗口全屏”?
我能做的最好的是:
surface.setLocation(0, 0);
surface.setSize(displayWidth, displayHeight);
但是,由于任务栏和setLocation(0,0)
不适合它,因此不合适(0,0)左右)
我使用的是Windows 10处理4.0B2。我也不使用处理应用程序,而是使用核心罐子作为库。
How do I set the window size to "windowed fullscreen"?
The best I can do is:
surface.setLocation(0, 0);
surface.setSize(displayWidth, displayHeight);
however it doesn't fit because of the taskbar and setLocation(0, 0)
doesn't set the position to exactly the top left corner (it is a little off to the right and bottom)
I am using Windows 10 with Processing 4.0b2. I am also not using the processing application, but using the core jar as a library.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个
fullScreen()
您可以使用。在
setup()
中,只需用size;
用fullScreen();
替换。请查看参考其他用途的参考,例如:
FullScreen(P2D);
)FullScreen(2);
)只有FullScreen(Span);
)There is a
fullScreen()
function you can use.In
setup()
simply replace yoursize();
call withfullscreen();
.Check out the reference for other uses, for example:
fullScreen(P2D);
)fullScreen(2);
) onlyfullscreen(SPAN);
)