Accusoft ImagXpress 13
DocumentDilate Method

The distance, in pixels, to extend the black pixels.

Range: 1 - 500

Default: 1

The direction to apply the dilation. Black pixels are expanded in this direction. Typically, this is set to a single direction, a pair of directions, or all directions.

Default: EnhancementDirectionAll

Description
Examines pixels in the current image and expands the black ones by given amount in given direction.
Syntax
Visual Basic
Public Sub DocumentDilate( _
   ByVal Amount As Integer, _
   ByVal Direction As enumEnhancementDirection _
) 
Parameters
Amount

The distance, in pixels, to extend the black pixels.

Range: 1 - 500

Default: 1

Direction
ValueDescription
EnhancementDirectionAllEnhance all directions.
EnhancementDirectionDownEnhance down.
EnhancementDirectionLeftEnhance left.
EnhancementDirectionLeftDownEnhance left and down.
EnhancementDirectionLeftDownBothEnhance left, down, and diagonally left down.
EnhancementDirectionLeftUpEnhance left and up.
EnhancementDirectionLeftUpBothEnhance left, up, and diagonally left up.
EnhancementDirectionRightEnhance right.
EnhancementDirectionRightDownEnhance right and down.
EnhancementDirectionRightDownBothEnhance right, down, and diagonally right down.
EnhancementDirectionRightUpEnhance right and up.
EnhancementDirectionRightUpBothEnhance right, up, and diagonally right up.
EnhancementDirectionUpEnhance up.

The direction to apply the dilation. Black pixels are expanded in this direction. Typically, this is set to a single direction, a pair of directions, or all directions.

Default: EnhancementDirectionAll

Remarks

This method validates the input, examines the pixels, expands the black pixels, and returns results from the detection and correction process.

The enumEnhancementDirection contains parameters that control the dilate process. If no parameters are provided, the current image has its black pixels expanded by one in all directions.

 

Outputs

 

Using DocumentDilate

1. Load a 1 bit image from a file or stream input.

2. Call DocumentDilate.

3. The current image is dilated.

 

Note: Available in Professional Edition.

See Also

ImagXpress Object  | ImagXpress Members  | enumEnhancementDirection Enumeration  | IPImageWasModified Property  | Document Image Processing  | Image Processing

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback