Login  Register

Antwort: How to load an image

Posted by Joachim Wesner on Jun 25, 2008; 1:55pm
URL: http://imagej.273.s1.nabble.com/How-to-load-an-image-tp3695753p3695754.html

Shawn,

the draw you are likely refering to is a method of your ImagePlus, i.e. you
need

img.draw();

(Otherwise "it" also "will not know" WHAT to draw!)


Please lookup such details in the API docs:

http://rsbweb.nih.gov/ij/developer/api/index.html


Did you read the tutorials and take a look at the sample code!?:

http://www.imagingbook.com/fileadmin/goodies/ijtutorial/tutorial171.pdf


Sincerely

JW




                                                                           
             Shawn                                                        
             <shawnz@BOCKOPTRO                                            
             NICS.CA>                                                   An
             Gesendet von:              [hidden email]                
             ImageJ Interest                                         Kopie
             Group                                                        
             <[hidden email].                                       Thema
             GOV>                       How to load an image              
                                                                           
                                                                           
             25.06.2008 15:27                                              
                                                                           
                                                                           
              Bitte antworten                                              
                    an                                                    
              ImageJ Interest                                              
                   Group                                                  
             <[hidden email].                                            
                   GOV>                                                    
                                                                           
                                                                           




Hi, everyone, I try to display an image in a Plugin Frame. Could I do it?
Or, do I have to define an ImageWindow? My code is like following,

ImagePlus img=IJ.openImage(Path);
draw();

However, I have an error, which is "cannot find symbol
symbol  : method draw()", although I already import Java.awt.Frame.

Anyone can give me an idea how to display an image in a Plugin Frame?

Thank you very much



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________