I am trying to load a .jpg image like this:
Jpeg2000RasterLayer jpgImageLayer = new Jpeg2000RasterLayer(@"C:\Users\Dave\Documents\Visual Studio 2010\PSIM\PSIM\PSIM\Samples\59and8,jpg");
jpgImageLayer.UpperThreshold = double.MaxValue;
jpgImageLayer.LowerThreshold = 0;
LayerOverlay ImageOverlay = new LayerOverlay();
ImageOverlay.Layers.Add("jpgImageLayer", jpgImageLayer);
Map.Overlays.Add(ImageOverlay);
Map.Refresh();
but I get a FileLoadException on the last line:
Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
Not sure what to do about that...
Dave