[jitsi-dev] about screen capture


#1

Hi,

int size = 1024 * 768 * 4;
byte[] out = new byte[size];

DesktopInteractImpl desktop = new DesktopInteractImpl();
         result = desktop.captureScreen(
                          4,
                          0, 0, 1024, 768,
                          out);

java.awt.Image image = new javax.swing.ImageIcon(out).getImage();

But, this not work.

How to convert array of bytes into a java Image ?

Thanks