ImageMan ActiveX Control Version 8
Filter Method
See Also  Example  Send comments on this topic.
FilterType

Setting

Description

0

Sharpen

1

Blur

2

Emboss

3

Edge Detect #1

4

Edge Detect #2

5

Vertical Edge Detection

6

Horizontal Edge Detection

8

LaPlace Sharpen

Glossary Item Box

Description

Filters the image using the specified builtin filter.

Syntax

Visual Basic
Public Sub Filter( _
   ByVal FilterType As enumFilterTypes _
) 

Parameters

FilterType

Setting

Description

0

Sharpen

1

Blur

2

Emboss

3

Edge Detect #1

4

Edge Detect #2

5

Vertical Edge Detection

6

Horizontal Edge Detection

8

LaPlace Sharpen

Remarks

Filtering is only supported on 16, 24, and 32 bit images. For all other images, use the IncreaseTo method to increase the color depth to an appropriate bitdepth. Filtering is only supported on 24 bit images.

Use the FilterLow method to filter using a user-defined kernel.

Example

Filter (Visual Basic)Copy Code
If ImageControl1.ImageColors <= 256 Then ' Increase the image to 24 bits if needed
    ImageControl1.IncreaseTo 24
End If

ImageControl1.Filter 0 ' Invoke the Sharpen Filter1

See Also

© 2014 Data Techniques Inc. All Rights Reserved.