Creates a new Polyline layer with a closed polyline (polygon) along the edge of the background layer.
The edge is determined by simulating a flood fill starting at the point specified by screenX and screenY (these are points within the control, not points of the bitmap).
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0
Syntax
C# | Visual Basic | Visual C++ |
public int LayersCreateFromEdge( int screenX, int screenY, int tolerance, bool maxFilter )
Public Function LayersCreateFromEdge ( _ screenX As Integer, _ screenY As Integer, _ tolerance As Integer, _ maxFilter As Boolean _ ) As Integer
public: int LayersCreateFromEdge( int screenX, int screenY, int tolerance, bool maxFilter )
Parameters
- screenX
- Int32
horizontal position of the starting point
- screenY
- Int32
vertical position of the starting point
- tolerance
- Int32
tolerance specifies the color difference between the starting pixel and the pixel being tested.
- maxFilter
- Boolean
Set maxFilter to True to apply a maximum filter that removes noise.