Login  Register

Re: Is it possible to create a screenshot with JOCL?

Posted by gouessej on May 30, 2020; 4:43pm
URL: https://forum.jogamp.org/Is-it-possible-to-create-a-screenshot-with-JOCL-tp4040656p4040668.html

readPixelsToBufferedImage() uses the OpenGL API. Maybe it's not what you're looking for.

Have you ever tested VLCJ? This example should help you:
https://github.com/caprica/vlcj/commit/fe8a278872003dab6b903bb8546caea676eabd6d
https://github.com/caprica/vlcj-natives/blob/master/src/main/java/uk/co/caprica/vlcj/binding/LibVlc.java#L1809

I don't see many options to do what you want in Java, maybe have a look at a Gstreamer Java binding if the solution above doesn't work.
Julien Gouesse | Personal blog | Website