You must Sign In to post a response.
  • Category: Visual Studio

    Plotting points in Picture box

    Dear all,

    I have some coordinates (land parcel coordinates)available in the xml for example
    X= 6390196.754073 Y= 741532.032895. I need to plot these points in the picture box.
    Kindly let me know how to plot the points.

    Thanks in advance.

    Regards,
    Jayakumar
  • #747580
    Hi Jay,

    You can plot your co-ordinates by this way-
    public void plotTheValues(List<TheList> allValuesList)
    {
    foreach (TheList val in allValuesList)
    {
    Int16 x1 = your value;
    Int16 y1 = your value;
    g.DrawString("X",
    new Font("Calibri", 12),
    new SolidBrush(Color.Black),
    y + y1, x - x1);
    g.DrawImage(bmp,...);
    }
    }
    Hope this will help you !!Let me know if you want any thing other on this.

    Thanks,
    Ashutosh Jha
    http://tricksroad.com

  • #747582
    Hai Ashutosh,

    Thanks for your response. May I know what is x,y in your code. Moreover I have plot the coordinates straight away in the picture box , but it is not visible in the picture box because it is map coordinates.


  • Sign In to post your comments