Hi Marco,
Thanks for providing the test data. To make sure It’s what you provided, just outline the file as below picture:
I tried both ECW files with the code as following:
winformsMap1.MapUnit = GeographyUnit.DecimalDegree;
winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);
EcwRasterLayer ecwImageLayer = new EcwRasterLayer(@"C:\Working Projects\Data\ECW Map\Topo10_Disma_LS150.ecw");
//EcwRasterLayer ecwImageLayer = new EcwRasterLayer(@"C:\Working Projects\Data\ECW Map\Stadtplan_LS150_20150624.ecw");
ecwImageLayer.UpperThreshold = double.MaxValue;
ecwImageLayer.LowerThreshold = 0;
ecwImageLayer.Open();
winformsMap1.CurrentExtent = ecwImageLayer.GetBoundingBox();
ecwImageLayer.Close();
LayerOverlay imageOverlay = new LayerOverlay();
imageOverlay.Layers.Add("EcwImageLayer", ecwImageLayer);
winformsMap1.Overlays.Add(imageOverlay);
winformsMap1.Refresh();
but all works fine, including by default and after zoomed-in. Please see the first picture below is the default view and the second is zoomed-in.
All these tests are on a brand-new machine with Windows 10 installed. I downloaded the public release “Map Suite Product Center” from official website, and activated the license to download the FULL PRODUCT 9.0.0.401.
Would you please do a double-verify to see how it works on your side?
Thanks,
Johnny