A value that indicates the number of pixels to expand each of the four page edges.
Instantiates a new BorderRemovalOptions object with the specified values.
Syntax
'Declaration
Public Function New( _
ByVal As Color, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As Integer, _
ByVal amountToExpandPage As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer _
)
'Usage
Dim padColor As Color
Dim borderSpeckSize As Integer
Dim pageSpeckSize As Integer
Dim cropBorder As Boolean
Dim replaceBorder As Boolean
Dim deskewBorder As Boolean
Dim quality As Integer
Dim amountToExpandPage As Integer
Dim minimumPageWidth As Integer
Dim maximumPageWidth As Integer
Dim minimumPageHeight As Integer
Dim maximumPageHeight As Integer
Dim minimumConfidence As Integer
Dim instance As New BorderRemovalOptions(padColor, borderSpeckSize, pageSpeckSize, cropBorder, replaceBorder, deskewBorder, quality, amountToExpandPage, minimumPageWidth, maximumPageWidth, minimumPageHeight, maximumPageHeight, minimumConfidence)
public BorderRemovalOptions(
Color ,
int ,
int ,
bool ,
bool ,
bool ,
int ,
int amountToExpandPage,
int ,
int ,
int ,
int ,
int
)
public: BorderRemovalOptions(
Color ,
int ,
int ,
bool ,
bool ,
bool ,
int ,
int amountToExpandPage,
int ,
int ,
int ,
int ,
int
)
public:
BorderRemovalOptions(
Color ,
int ,
int ,
bool ,
bool ,
bool ,
int ,
int amountToExpandPage,
int ,
int ,
int ,
int ,
int
)
Parameters
- padColor
- The color to use for pixels that are added to the image
or for pixels that replace border pixels.
- borderSpeckSize
- The maximum width or height (in pixels) of specks present
in the border of the image.
- pageSpeckSize
- The maximum width or height (in pixels) of specks present
in the interior (page) portion of the image.
- cropBorder
- A flag that indicates whether the detected border pixels
should be removed from the image.
- replaceBorder
- A flag that indicates whether the detected border pixels
should be replaced with the fill color.
- deskewBorder
- A flag that indicates whether the image should be deskewed
based on the angle of the detected border.
- quality
- A value that indicates the amount of effort to expend
analyzing the image to locate the border. Set to a high value
to insure the most accurate possible result and to a low value
for fastest operation.
- amountToExpandPage
- A value that indicates the number of pixels to expand each of the four page edges.
- minimumPageWidth
- A value that indicates the minimum expected page width, in pixels.
Set this value as high as possible (while still being smaller than the page size)
to insure best results.
- maximumPageWidth
- A value that indicates the maximum expected page width, in pixels.
Set this value as low as possible (while still being larger than the page size)
to insure best results.
- minimumPageHeight
- A value that indicates the minimum expected page height, in pixels.
Set this value as high as possible (while still being smaller than the page size)
to insure best results.
- maximumPageHeight
- A value that indicates the maximum expected page height, in pixels.
Set this value as low as possible (while still being larger than the page size)
to insure best results.
- minimumConfidence
- A value that indicates the minimum detection confidence required
before correction will proceed. If the detection confidence is
less than this value, the image will not be modified.
See Also