ImageEn, unit imageenview

TImageEnView.PolySelPoints

TImageEnView.PolySelPoints


Declaration

property PolySelPoints: PPointArray;


Description

Returns the current selection as a pointer to an array of TPoint.

Note:
 PolySelPoints will only be valid if a polygonal/vectorial selection has been made, e.g. by using miSelectPolygon. A vectorial selection is a series of lines forming a vectorial selection shape. It is not valid for non-vectorial selections, i.e. selections that are represented by a bitmap, e.g. when using SelectColors or SelectNonAlpha. For non-vectorial/bitmap selections use IsPointInsideSelection to determine whether specific pixels are selected.
 To create a polygonal selection in code see AddSelPoint


Example

// Copies current selection to ImageEnView2. Then enhance contrast of ImageEnView2 and copy back to ImageEnView1 (in same selection).
ImageEnView2.CopyFromPolygon(ImageEnView1.IEBitmap.VCLBitmap, ImageEnView2.PolySelPoints^, ImageEnView2.PolySelCount, Point(0, 0));
ImageEnView2.Proc.Contrast(30);
ImageEnView2.CopyToPolygon(ImageEnView1.IEBitmap.VCLBitmap, ImageEnView1.PolySelPoints^, ImageEnView1.PolySelCount, Point(0, 0));
ImageEnView1.Update();


See Also

 PolySel
 PolySelCount
 AddSelPoint