How to load an image

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

How to load an image

Shawn-62
Hi, everyone, I try to build up a Plugin Frame, in which I can load an
image from files. The following is part of my code,

import java.awt.*;
import java.awt.event.*;
import java.io.*;
import ij.plugin.frame.*;
import ij.*;
import ij.process.*;
import ij.gui.*;
import java.awt.image.*;
import java.util.zip.GZIPInputStream;
import java.net.*;
import java.util.*;
import ij.measure.*;

FileInfo fi = new FileInfo();

However, I get an error message, which says

cannot find symbol
symbol  : class FileInfo
location: class myPluginFrame
FileInfo fi = new FileInfo();

Is there anyone can tell me how to fix it?

Thank you
Reply | Threaded
Open this post in threaded view
|

Antwort: How to load an image

Joachim Wesner
Hi,

it seems you are missing

import ij.io.*;

that´s where FileInfo is, import ij.* won´t work (not recursive)

JW

ImageJ Interest Group <[hidden email]> schrieb am 24.06.2008 15:51:29:

> Hi, everyone, I try to build up a Plugin Frame, in which I can load an
> image from files. The following is part of my code,
>
> import java.awt.*;
> import java.awt.event.*;
> import java.io.*;
> import ij.plugin.frame.*;
> import ij.*;
> import ij.process.*;
> import ij.gui.*;
> import java.awt.image.*;
> import java.util.zip.GZIPInputStream;
> import java.net.*;
> import java.util.*;
> import ij.measure.*;
>
> FileInfo fi = new FileInfo();
>
> However, I get an error message, which says
>
> cannot find symbol
> symbol  : class FileInfo
> location: class myPluginFrame
> FileInfo fi = new FileInfo();
>
> Is there anyone can tell me how to fix it?
>
> Thank you


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