Can you manipulate the hdmi output with java?


What I want to do is from an application to generate images and watch them on a TV connected to the pc by hdmi, the idea is that the TV does not show the interface of the application or the interface of the operating system, but only the image that I created.

I'm not looking for a solution for the app, but a way to present my images in full screen by the hdmi output.

Greetings and thanks!

asked by Esteban 06.03.2017 в 02:05

1 answer


Generally the hardware layer does not matter much to Java (the degree of abstraction is such as the strength and weakness of Java), so according to me the best way would be an application that shows what you want to show in full screen and leave the way the OS connects with the device to the OS.

To go through the available screens (in the case that you have a screen connected to the hdmi) you should serve:

GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[] gs = ge.getScreenDevices();

Then to put the device of your choice in full screen mode you can use the exclusive mode :

GraphicsDevice miDispositivo=gs[miSeleccion];
Window miVentana;

try {
} finally {
answered by 06.03.2017 / 02:40