webosose / build-webos

webOS OSE build layer
670 stars 126 forks source link

API for taking screenshots #8

Closed ilyai closed 7 months ago

ilyai commented 6 years ago

I'm wondering what methods are available for taking screenshots in png or jpeg format. I've searched there: http://webosose.org/develop/ls2-api/ls2-api-reference/ and couldn't find any related method.

In X11 environment our application is able to take screenshots using AWT, but on WebOS it's not working.

The error I'm getting is:

java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.

Also tried ':0.0' value for DISPLAY variable, same error.

rabzu commented 6 years ago

Also, XWayland does not seem to be available on the WebOS OSE build for r-pi

chbae commented 6 years ago

webOS doesn't work on X11 environment. Please see http://forum.webosose.org/t/capturing-screenshots-on-webos/326/5 for capture API

rabzu commented 5 years ago

@chbae any update on this?

Heeam-Shin commented 7 months ago

Use one of the followings: