4 Replies - 424 Views - Last Post: 06 October 2012 - 07:36 PM Rate Topic: -----

#1 frijj  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 50
  • Joined: 01-October 12

Drawing a outline of a country, Where do i start?

Posted 06 October 2012 - 06:39 PM

I am unsure where to start, The X co ords are 81, 288, 287, 295, 297, 292, 291, 296, 307, 322, 341, 362, 360, 372, 376, 391, 401, 415, 425, 426, 440, 451, 452, 460, 468, 461, 448, 443, 445, 452, 457, 473, 492, 492, 488, 480, 492, 498, 512, 542, 550, 558, 563, 563, 567, 581, 596, 616, 638, 665, 667, 693, 715, 725, 728, 723, 706, 695, 680, 668, 656, 648, 650, 650, 646, 640, 630, 631, 617, 607, 607, 592, 588, 588, 576, 588, 550, 541, 533, 530, 530, 501, 491, 481, 477, 480, 476, 463, 455, 438, 425, 415, 408, 402, 400, 407, 400, 395, 375, 372, 365, 352, 342, 346, 365, 386, 397, 400, 395, 386, 391, 386, 373, 367, 353, 332, 333, 327, 337, 332, 322, 322, 291, 286, 290, 287, 232, 201, 177, 166, 155, 143, 123, 117, 110, 111, 101, 83, 81, 67, 71, 51, 55, 67, 65, 67, 100, 115, 128, 123, 113, 116, 131, 126, 120, 120, 148, 152, 162, 168, 180, 196, 220, 231, 226, 215, 208, 225, 240, 248, 268, 281,

and the y co ordinates are 144, 143, 152, 158, 166, 177, 188, 203, 211, 208, 199, 203, 193, 191, 187, 196, 193, 194, 183, 174, 161, 173, 189, 204, 208, 222, 234, 241, 252, 252, 237, 237, 238, 247, 256, 262, 259, 248, 246, 257, 264, 262, 272, 281, 284, 279, 284, 289, 288, 306, 317, 329, 336, 349, 371, 393, 413, 424, 442, 461, 466, 476, 489, 508, 531, 551, 566, 578, 594, 609, 622, 629, 634, 637, 638, 634, 639, 641, 646, 651, 651, 664, 674, 681, 698, 711, 727, 739, 757, 782, 789, 804, 817, 818, 807, 799, 792, 787, 774, 767, 772, 757, 757, 749, 728, 711, 703, 687, 678, 676, 657, 646, 649, 621, 617, 618, 598, 581, 551, 538, 531, 517, 517, 498, 494, 477, 451, 406, 412, 426, 426, 436, 432, 434, 427, 407, 417, 417, 408, 407, 399, 376, 363, 358, 349, 333, 314, 318, 262, 248, 243, 231, 228, 221, 221, 212, 204, 211, 201, 214, 223, 219, 208, 198, 192, 177, 163, 168, 172, 162, 156, 144,


What template code is available to basically connect the dots to make the outline of the country. Ive tried a few but fail

Is This A Good Question/Topic? 0
  • +

Replies To: Drawing a outline of a country, Where do i start?

#2 Kinaces  Icon User is offline

  • D.I.C Head

Reputation: 78
  • View blog
  • Posts: 230
  • Joined: 04-October 12

Re: Drawing a outline of a country, Where do i start?

Posted 06 October 2012 - 07:03 PM

Is it suppose to look like this?

Posted Image
Was This Post Helpful? 1
  • +
  • -

#3 frijj  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 50
  • Joined: 01-October 12

Re: Drawing a outline of a country, Where do i start?

Posted 06 October 2012 - 07:27 PM

Yes

Is it cool if i took a look at the code you used to draw it?
Was This Post Helpful? 0
  • +
  • -

#4 Kinaces  Icon User is offline

  • D.I.C Head

Reputation: 78
  • View blog
  • Posts: 230
  • Joined: 04-October 12

Re: Drawing a outline of a country, Where do i start?

Posted 06 October 2012 - 07:34 PM

I will not give you the code, however I will tell you how to do it.

Just create 2 arrays. One array for the x's and one for the y's.

int[] x = {(copy paste numbers here)}
int[] y = {(copy paste number here)}



Then with this you can make a Polygon.

Polygon poly = new Polygon(x array, y array, length of the array)



Then you just can just paint it on a Panel like any other shape.
Was This Post Helpful? 0
  • +
  • -

#5 frijj  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 50
  • Joined: 01-October 12

Re: Drawing a outline of a country, Where do i start?

Posted 06 October 2012 - 07:36 PM

Thank You
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1