Description

Applies Sharpen (Un-Sharp Mask) filter to an image instance to bring out details.

Return Type

A McImage object.  

The resulting McImage.

Syntax

object.Sharpen ([lPasses], [Size], [Strength], [vSourceImg])

The Sharpen Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McEnhance.
lPassesOptional. A Long value.

Number of times to apply the filter. If not given or negative then the Passes property is used. Unless you have changed it, Passes will be 1.

SizeOptional. A Long value.

Size of convolution kernel (3, 5, or 7).

StrengthOptional. A Long value.

Strength factor (from 0 to 100).

vSourceImgOptional. A Variant value.

Optional input IMcImage.

Exceptions

The exception mceINVALIDARG (E_INVALIDARG) will be thrown if one of the parameters is invalid.