Forum Xamarin.Android


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Draw lines between coordinates

InformationScienceInformationScience Member
edited December 2018 in Xamarin.Android

Hi everyone,

I was wondering how you can draw lines between points in time (say from a to b, and from b to c and so on) on a Bitmap. The points are coordinates of a gps. The points get drawn as follows:

foreach (Pointtime pt in distance)
                        PointF p = pt.point;
                        float qx = p.X - center.X;
                        float wx = qx * factor;
                        float ex = wx * scale;
                        float xx = this.Width / 2 + ex;

                        float qy = center.Y - p.Y;
                        float wy = qy * factor;
                        float ey = wy * scale;
                        float yy = this.Height / 2 + ey;

                        c.DrawCircle(xx, yy, 10, red); //draws a point for every 4 meters walked.
Sign In or Register to comment.