Quantcast
Viewing all articles
Browse latest Browse all 2341

New Post: Draw Line Between Some Point

Hello paul,
this is my code comment

//creating point 1 & point 2
double lat, lng, lat2, lng2;
lat = Convert.ToDouble(nodeDataGridView.Rows[0].Cells[3].Value.ToString());
lng = Convert.ToDouble(nodeDataGridView.Rows[0].Cells[4].Value.ToString());
lat2 = Convert.ToDouble(nodeDataGridView.Rows[1].Cells[3].Value.ToString());
lng2 = Convert.ToDouble(nodeDataGridView.Rows[1].Cells[4].Value.ToString());

//creating line betwen two point 1 & 2
uint warna = Convert.ToUInt32(ColorTranslator.ToOle(Color.Red)); //convert red color to UInt32
axMap1.DrawLine(lat, lng, lat2, lng2, 200, warna); //drawing line

// -1 will be returned on failure
// draw point on map
int layerHandle = axMap1.AddLayer(sf, true);

please correct me if i'm wrong. Thanks

Viewing all articles
Browse latest Browse all 2341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>