Hei,

if an image has been added
then the Image is of type "BasicFeature".
In the FeatureSchema the first entry is the geometry type and the second entry is the path (type STRING), called "IMAGEFILE"

you can see that, if you use the debugger and stop in
ImageLayerManagerPlugIn$ImageLayerManagerDialog [line: 111] - ImageLayerManagerDialog(PlugInContext)

so you basically have to retrieve the "image" - feature and look for the second attribute

If you use the Feature Info button from the toolbar and click on the image it also returns the image path.

stefan

Stefan Steiniger schrieb:
Hei Fernando,

the code of Image Layer Manager may give you some hints (i.e. the class: ui.plugin.imagery.ImageLayerManagerPlugIn)

however, things may be different if use the original JUMP or OpenJUMP? The above is for loading images in the original JUMP.

stefan

Fernando José Pedrosa schrieb:
Hello.

I'm needing of, maybe, only one line of JAVA code. I need to recover the source of image opened by OpenJump. Example: the user open an image in "File / Open File", and my plugin need of name this image.
It's possible?
If not, as export this image with the same properties (type "jpg" or "png", width and height)?

Thanks.

--
FernandoJP
MSN: [email protected] <mailto:[email protected]>
Google Talk: [email protected] <mailto:[email protected]>


------------------------------------------------------------------------

_______________________________________________
jump-users mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jump-users
_______________________________________________
jump-users mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jump-users


_______________________________________________
jump-users mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jump-users

Reply via email to