QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: Dav on February 22, 2021, 11:17:47 am
-
Was wondering if there's a way to grab desktop image under Linux and Mac, like _SCREENIMAGE works under Windows. As example, here's a screensaver thing that uses _SCREENIMAGE. Works in Windows, but how would I do this under Linux or Mac? If there's a way, I could add it to my code before posting it here.
Thanks.
- Dav
'DesktopWriter.bas
'Coded by Dav, FEB/2021
x% = x% + c%
y% = y% + c%
r&
= RND * 155 + 100: g&
= RND * 155 + 100: b&
= RND * 155 + 100
SUB ball
(BallX
, BallY
, size
, r&
, g&
, b&
, a&
)
-
Maybe Pipecom a command to Linux to take a picture | or >> filename, then _loadimage that file?