Visual Basic
C#
Managed Extensions for C++
C++/CLI
Parameters
- scratchStartingPoint
- A point value which represents the starting point of the scratch to be removed. The coordinate values of the point must be greater than or equal to 0.
- scratchEndingPoint
- A point value which represents the ending point of the scratch to be removed. The coordinate values of the point must be greater than or equal to 0.
- scratchLineWidth
- An integer value which represents the width of the scratch in pixels. This value must be greater than or equal to 1.
- scratchThreshold
- An integer value which represents how bright a pixel must be before it is considered a scratch. This value must be between -255 and 255 inclusive.
- scratchFilterAdjustment
- An integer value which controls where the filter boundary begins relative to the scratch for smoothing to occur. Pixels near (not inside) the scratch are filtered to make a smooth transition. This value must be between -6 and 2 inclusive. A default value of 0 is recommended for a starting value.
- scratchSmoothingAdjustment
- An integer value which controls how much smoothing is applied to the pixels in the scratch. This value must be between -5 and 100 inclusive. A default value of 0 is recommended for a starting value.
- scratchType
- The DefectType value used in determining the type of scratch to process, essentially either dark or light scratches.
Exception | Description |
---|---|
System.ArgumentException | Thrown when the scratch starting and ending points are the same. |
Before calling this method you must set an area using the SetArea method.
Note: Available in Professional edition.
Thrown when the scratch starting and ending points are the same.