How to capture Roku screenshot using java code

I am working on Roku Automation and I need to take screenshot to compare images.
Manually - We can use web browser and login and go to Utilities and click on “Scrennshot” button to take a snapshot.

How to do the above using java code or any other program.
Is there a way to do the same using http protocol.and java, If so can some one help.

Have you tried GetPNG()?
https://sdkdocs.roku.com/display/sdkdoc/ifDraw2D

Thanks for the reply, But I do not have access to channel/app code. I need to rely on HTTP request to get the screenshot .

@tadipatri how to get the screenshot over the http request?

It’s not clear what you’re trying to do, but you can only do a screen capture if the channel is side-loaded or if you do it within the channel code.