AccusoftImagXpress13 ActiveX DLL > ImagXpress Object : RemoveScratches Method |
The x-coordinate of the starting point of the scratch to be removed.
This value must be greater than or equal to 0.
The y-coordinate of the starting point of the scratch to be removed.
This value must be greater than or equal to 0.
The x-coordinate of the ending point of the scratch to be removed.
This value must be greater than or equal to 0.
The y-coordinate of the ending point of the scratch to be removed.
This value must be greater than or equal to 0.
The width of the scratch in pixels.
This value must be greater than or equal to 1.
An integer value which controls how bright a pixel must be before it is considered a scratch.
Valid range is between -255 and 255.
The default value is 0.
An integer value which controls where the filter boundary begins relative to the scratch for smoothing to occur.
Valid range is between -6 and 2.
The default value is 0.
An integer value which controls how much smoothing is applied to the pixels in the scratch.
Valid range is -5 and 100.
The default value is 0.
Visual Basic |
---|
Public Sub RemoveScratches( _ ByVal IPDefectX1 As Long, _ ByVal IPDefectY1 As Long, _ ByVal IPDefectX2 As Long, _ ByVal IPDefectY2 As Long, _ ByVal IPDefectLineWidth As Long, _ ByVal IPDefectThreshold As Integer, _ ByVal IPDefectFilterAdjustment As Integer, _ ByVal IPDefectSmoothingAdjustment As Integer, _ ByVal IPDefectType As enumDefectType _ ) |
The x-coordinate of the starting point of the scratch to be removed.
This value must be greater than or equal to 0.
The y-coordinate of the starting point of the scratch to be removed.
This value must be greater than or equal to 0.
The x-coordinate of the ending point of the scratch to be removed.
This value must be greater than or equal to 0.
The y-coordinate of the ending point of the scratch to be removed.
This value must be greater than or equal to 0.
The width of the scratch in pixels.
This value must be greater than or equal to 1.
An integer value which controls how bright a pixel must be before it is considered a scratch.
Valid range is between -255 and 255.
The default value is 0.
An integer value which controls where the filter boundary begins relative to the scratch for smoothing to occur.
Valid range is between -6 and 2.
The default value is 0.
An integer value which controls how much smoothing is applied to the pixels in the scratch.
Valid range is -5 and 100.
The default value is 0.
Value | Description |
---|---|
DefectTypeDark | A dark defect is to be removed. |
DefectTypeLight | A light defect is to be removed. |
Prior to calling RemoveScratches, an Area must be set, using the Area method.
If the starting and ending points of the scratch are identical, an IX_Error_InvalidScratchLinePoints error is returned.
Note: Available in Professional Edition.