如何使用 RealBasic、Visual basic 在屏幕上绘图?我有一个默认笔记本电脑屏幕和第二个显示器
我有笔记本电脑的默认屏幕和第二屏幕。我怎样才能编写RealBasic、VisualBasic(Java 不可能)应用程序,它可以让我在桌面(两个屏幕)上绘画?
I have my laptop default screen and second screen. How can I write RealBasic, VisualBasic (Java not possible) application which can allow me to paint on desktop (both screen)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您很可能无法直接在屏幕上绘图,但您可以抓取每个屏幕的屏幕截图,然后在这些屏幕上绘图。根据您想要对应用程序执行的操作,获取每个屏幕的屏幕截图,然后简单地在占据整个屏幕的标准窗口中显示屏幕截图,然后让您进行编辑,这几乎肯定是一个更现实的目标并“绘制”到屏幕上。
另一种选择是创建一个透明窗口,然后拦截鼠标单击并在该窗口上显示信息。
如果您在 Mac 上使用 RB,则可以使用 Monkeybread 软件插件创建 NSWindowMBS 并修改 alpha 值或 OverlayWindowMBS。不过,看起来您正尝试在 Windows 上执行此操作,因此这是行不通的。
Most likely you won't be able to draw directly to the screen, but you could potentially grab screenshots of each screen and then draw onto those. Depending on what exactly you're trying to do with your application, it would almost definitely be a more realistic goal to grab a screenshot of each screen and then simply display the screenshots in standard windows that take up the entire screen, letting you then edit and "draw" onto the screen there.
Another option would be to create a transparent window, and then intercept mouse clicks and present information on that window.
If you're using RB on a Mac, you can use the Monkeybread Software Plugin to create a NSWindowMBS and modify the alpha value or an OverlayWindowMBS. It looks like you're trying to do this on Windows, though, so this won't work.