![]() (fillblack) /*adding the line to grid in my case. PointCollection Bluepoints = Blue_Polygon.Points /*get all the points Blue Polyline*/įor (int i = 0 i Bluepoints.Y) /*If red above blue draw a line of single pixel width from redpint to blue point and set color to yellow*/įillyellow = new Line I) you get all the points of the red and blue lines for every unit PointCollection Redpoints = Red_Polygon.Points /*get all the points Red Polyline*/ Hope you get it worked out quickly and easily.īefore you you this piece of code pls make sure I'll stick my sample on my SkyDrive in a sec if you'd like to take a look at it. Which actually works, however after looking more closely at your image I see you have curves in your lines and this would not accout for that. PointCollection pc2 = new PointCollection() īrush = new SolidColorBrush(Colors.Lime) PointCollection pc = new PointCollection() Private void FillGraph(object sender, e) SolidColorBrush brush = new SolidColorBrush(Colors.Lime) ![]() PointCollection col2 = new PointCollection() PointCollection col1 = new PointCollection() Pline (an abbreviation for PolyLINE) is used to create single objects that can be made up of multiple LINE & ARC segments. One way to create a LWPOLYLINE is to use the Pline command. I got to playing with your idea and came up with the following sample. Here is how to use Polylines in AutoCAD (the basics) PLINE PL (alias) D r a w + Polyline.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |