Results 1 to 24 of 24

Thread: Draw region and fill the closed regions with a color

Threaded View

  1. #23
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Re: Draw region and fill the closed regions with a color

    OK, so use two For next loop's to get each pixel of your PictureBox1,
    change the pixel-value to the coordinate value (you got the code in the old threat) and save those values along with the colorvalue of that picture!
    Something like:

    Code:
    For i=1 to PictureBox1.ScaleWidth
       For j=1 to PictureBox1.ScaleHeight
          'Change i to Longitude
          'Change j o Latitude
          ColorValue=PictureBox.Point(i,j)
          'Write Latitude, Longitude, Color to your file
       Next j
    Next i
    The actual coding should be no problem now

    BTW : You didn't expect me to do all of your work, didn't you
    Last edited by opus; Apr 13th, 2007 at 02:18 AM.
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width