Login  Register

Re: open images in separate graphical device

Posted by Oliver S. Lazar on Mar 16, 2007; 7:36am
URL: http://imagej.273.s1.nabble.com/open-images-in-separate-graphical-device-tp3700052p3700053.html

Hi Stefan,

You can use the following code:
//************************************************************
// gets the whole graphics area for the machine
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
               
// gets an array of individual Graphics devices
// ie if you have two video cards length = 2
GraphicsDevice[] gd = ge.getScreenDevices();
               
gc = gd[<here write index>].getDefaultConfiguration();

// in the class ImageWindow/StackWindow You can set the location
this.setLocation(gc.getBounds().x,gc.getBounds().y);

//*************************************************************

Kind regards

Oliver

Stefan Hanssen wrote
Hi,

 

Is it possible to have ImageJ automatically open up images on a secondary
graphic device?

Are there any plug-ins available for handling such requests?

I haven't been able to find any documentation about this at all.

 

Thanks,

Stefan Hanssen