:: AForge.NET Framework :: Articles :: Forums ::

get points array from line ?!

The forum is to discuss topics related to different areas of image processing and computer vision.

get points array from line ?!

Postby Ayad » Tue Apr 12, 2016 10:10 pm

hello programmers ,, :)

i want to retrieve a points array (IntPoint) array from Line or a points array between two IntPoints ,,
in order to process each point
is there a way to do that ?

Code: Select all
Line line = new Line(currentPoint, nextPoint);

                    foreach (IntPoint point in line)  //<<<<< line is not IntPoint[]
                        if (bmp.GetPixel(point.X, point.Y).R > 0)
Posts: 2
Joined: Tue Apr 12, 2016 10:02 pm

Re: get points array from line ?!

Postby andrew.kirillov » Wed Apr 13, 2016 6:53 am

With best regards,

Interested in supporting AForge.NET Framework?
User avatar
Site Admin, AForge.NET Developer
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Return to Image Processing and Computer Vision