painting an ImagePlus into a JPanel

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

painting an ImagePlus into a JPanel

Albert Cardona
Nicola:

Simply extend the paint(Graphics g) method of JPanel, and paint in there the
ImagePlus by calling its getImage() method, and then g.drawImage(...)

Alternatively create an ij.gui.ImageCanvas with your ImagePlus as argument,
and embed this awt component into your JPanel.

This topic has been discussed in the list before, please search the archives.

Albert

--
Albert Cardona
Molecular Cell Developmental Biology
University of California Los Angeles
Tel +1 310 2067376
Programming: http://www.ini.unizh.ch/~acardona/trakem2.html
Research: http://www.mcdb.ucla.edu/Research/Hartenstein/
Web design: http://www.pixelets.com