Search code examples
delphiimage-processingdelphi-7pascal

How do i use "TImageEnVect.SetObjPolylinePoints" function in Delphi?


I have an image and points that belong this image. I added image with points that belong the image below:

enter image description here

My code's summary is added below:

PPArray : array of TPoint;`
.
.
PPArray := FindCellPolygonPoints(CenterP,BrownMask, 40);
ImageEnVect1.SetObjPolylinePoints(???,PPArray);

How do i use this function or could you help me to create polygon by using these points with another method?


Solution

  • I solved my question by adding to my codehobj:= ImageEnVect1.AddNewObject(iekPOLYLINE, Blob.BoundingBox, clGreen);part. Thanks for your helps.