banner










If you can draw a line, then Polyline will be a snap. Think of it as connecting the dots, or in this case the coordinates.

In LINE you have two sets of parameters. The start and end. Polyline, expands on that. You can keep adding more coordinates. If you have never played around with Line, then I'll give a quick explanation of how the parameters work.

Line has two sets of parameters. FIRST SET: This determines the location you want to begin drawing the line. Let's say 20,20. That means I want to start drawing my line at 20 from the left edge and 20 down from the top.

SECOND SET: This determines where the line will end. Lets say at 200,270. This means, 200 from the left edge and 270 from the top.

Now Polyline is the same, but different. You don't have to stop at two coordinates but keep going. Take for instance the image below: I used these coordinates. ( 0,0 100,150 150,100 250,100 398,398 220,290 and the result is.....




polyline

As you can see, connect the dots, one set of coordinates leads to another until it stops.






Polygon

Polygon is the same as Polyline except for one difference. Polygon will connect the ending coordinate to the beginning coordinate.

Here is something I drew with these coordinates: 0,150 398,398 200,0 0,398 398,200 0,200 and fill color white.



polygon

The Polys can be fun to play around with. Here is one I did in three stages:

  • First stage coordinates: 390,390 200,390 200,200 390,200 390,390 with fill color white
  • Second stage coordinates: 200,200 390,200 300,150 100,150 200,200 with fill color azure
  • Third stage coordinates: 100,150 200,200 200,390 100,300 with fill color azure4

The results is below.

example 2

What I have found helpful to do is to draw the image on paper first and then use it as a guide for finding the right coordinates. I hope this has helped you understand Polyline and Polygon better. Enjoy!



Susanna Mitchell





(c)copyright 2001-2010 all rights reserved by Susanna Mitchell

Valid XHTML 1.0 Transitional



banner

Website Hit Counters
Web Counters