AccusoftImagXpress13 ActiveX DLL > ImagXpress Object : 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
Visual Basic |
---|
Public Sub DocumentDilate( _ ByVal Amount As Integer, _ ByVal Direction As enumEnhancementDirection _ ) |
The distance, in pixels, to extend the black pixels.
Range: 1 - 500
Default: 1
Value | Description |
---|---|
EnhancementDirectionAll | Enhance all directions. |
EnhancementDirectionDown | Enhance down. |
EnhancementDirectionLeft | Enhance left. |
EnhancementDirectionLeftDown | Enhance left and down. |
EnhancementDirectionLeftDownBoth | Enhance left, down, and diagonally left down. |
EnhancementDirectionLeftUp | Enhance left and up. |
EnhancementDirectionLeftUpBoth | Enhance left, up, and diagonally left up. |
EnhancementDirectionRight | Enhance right. |
EnhancementDirectionRightDown | Enhance right and down. |
EnhancementDirectionRightDownBoth | Enhance right, down, and diagonally right down. |
EnhancementDirectionRightUp | Enhance right and up. |
EnhancementDirectionRightUpBoth | Enhance right, up, and diagonally right up. |
EnhancementDirectionUp | Enhance 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
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.