This project is read-only.

how to display image in map,Vision 1.3?

Aug 14, 2012 at 1:37 AM
Edited Aug 14, 2012 at 1:40 AM

I use the following  code to display an image in map, but it's not work,please help

            IImageData data = new ImageData();
            data.Filename = Application.StartupPath + @"\dwg.tif";
            IMapImageLayer layer = new MapImageLayer(data);
            data.Projection = map1.Projection;

no exception,but there is no image in map



Aug 14, 2012 at 12:00 PM
Edited Aug 14, 2012 at 12:32 PM
     The following code is right, I have address this problem.
     IDataManager manager=new DataManager();
     IImageData image=manager.OpenImage(Application.StartupPath + @"\dwg.tif");