I am pasting code along with TIFF file attachment. Kindly check for me why its not displaying.
Private Sub LoadAGeoTiffImage_Load(ByVal sender As Object, ByVal e As EventArgs)New GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean)Dim worldImageLayer As New GeoTiffRasterLayer("..\..\SampleData\Data\kuwait61.tif")Double.MaxValueDim staticOverlay As New LayerOverlay()"WorldImageLayer", worldImageLayer)New RectangleShape(46.38, 30.1, 48.5, 28.5)'winformsMap1.CurrentExtent = New RectangleShape(-118.098, 84.3, 118.098, -84.3)End Sub
winformsMap1.MapUnit = GeographyUnit.DecimalDegree
winformsMap1.BackgroundOverlay.BackgroundBrush =
worldImageLayer.UpperThreshold =
worldImageLayer.LowerThreshold = 0
staticOverlay.Layers.Add(
winformsMap1.Overlays.Add(staticOverlay)
winformsMap1.CurrentExtent =
winformsMap1.Refresh()