Hi,
I have an image with [1KM x 1KM]. this image is:
TIF.with all related files: hdr, jgw, and tfw.
I did apply this code:
___________
winformsMap1.MapUnit = GeographyUnit.DecimalDegree;
winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);
GdiPlusRasterLayer worldImageLayer = new GdiPlusRasterLayer(@"D:\TesSolution\image.tif");
worldImageLayer.UpperThreshold = double.MaxValue;
worldImageLayer.LowerThreshold = 0;
worldImageLayer.IsGrayscale = false;
LayerOverlay ImageOverlay = new LayerOverlay();
ImageOverlay.Layers.Add("WorldImageLayer", worldImageLayer);
winformsMap1.Overlays.Add(ImageOverlay);
winformsMap1.CurrentExtent = new RectangleShape(-118.098, 84.3, 118.098, -84.3);
winformsMap1.Refresh();
But the result I just get the blue empty color.
but if I use the World.tif, wich comes with SampleData, I get the World.tif?
Where is the problem in my loading for the image.tif?
Kind Regards,
Bandar