Accusoft ImagXpress 12
DocumentDilate Method
See Also  Send comments on this topic.
Amount

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

Range: 1 - 500

Default: 1

Direction

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

AccusoftImagXpress12 ActiveX DLL > ImagXpress Object : DocumentDilate Method

Glossary Item Box

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

  • ImagXpress validates the input, examines the pixels, expands the black pixels, and returns results from the detection and correction process. The current content may be modified. If the operation fails, the current image is un-changed.
  • IPImageWasModified is set to true if the image was modified, false if the image was not modified.

 

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

©2013. Accusoft Corporation. All Rights Reserved.