Visual Basic (Declaration) | |
---|---|
Public Class UnsharpMaskCommandBitmapEffect Inherits RasterCommandBitmapEffect |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class UnsharpMaskCommandBitmapEffect : RasterCommandBitmapEffect |
C++/CLI | |
---|---|
public ref class UnsharpMaskCommandBitmapEffect : public RasterCommandBitmapEffect |
XAML Property Element Usage | |
---|---|
UnsharpMaskCommandBitmapEffect ... |
XAML Property Element Usage | |
---|---|
UnsharpMaskCommandBitmapEffect ... |
Run the UnsharpMaskCommandBitmapEffect on an image.
Visual Basic | Copy Code |
---|---|
Public Sub UnsharpMaskCommandBitmapEffectExample(ByVal element As FrameworkElement) |
C# | Copy Code |
---|---|
public void UnsharpMaskCommandBitmapEffectExample(FrameworkElement element) |
XAML | Copy Code |
---|---|
<Page Title="CSAnimateEffect" Height="391" Width="300" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:lteffects="clr-namespace:Leadtools.Windows.Media.Effects.Effects;assembly=Leadtools.Windows.Media.Effects"> |
This command is actually considered a sharpening method. It is used to sharpen the image with a minimum of noise. To reduce the noise, it starts by blurring a copy of the original image. The amount of blur depends on Radius. The method then determines the difference between each pixel's value of the original image and the corresponding pixel's value in the blurred image. If the difference is greater than the threshold value, then the difference between the pixel values is multiplied by the amount value and added to the original pixel value. To increase the thickness of the sharpened edges, increase the radius value. To increase the amount of sharpness, increase the amount value. To reduce the noise and eliminate the small edges or individual pixels that will produce noise in image, increase the threshold value. Using the Yuv color space decreases the processing time.
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Freezable
System.Windows.Media.Animation.Animatable
System.Windows.Media.Effects.BitmapEffect
Leadtools.Windows.Media.Effects.RasterCommandBitmapEffect
Leadtools.Windows.Media.Effects.Effects.UnsharpMaskCommandBitmapEffect
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, Windows Server 2003 family, Windows Server 2008 family
Reference
UnsharpMaskCommandBitmapEffect MembersLeadtools.Windows.Media.Effects.Effects Namespace
SharpenCommandBitmapEffect Class
PosterizeCommandBitmapEffect Class
MosaicCommandBitmapEffect Class
EmbossCommandBitmapEffect Class
MedianCommandBitmapEffect Class
AddNoiseCommandBitmapEffect Class
IntensityDetectCommandBitmapEffect Class
SpatialFilterCommandBitmapEffect Class
BinaryFilterCommandBitmapEffect Class
MinimumCommandBitmapEffect Class
MaximumCommandBitmapEffect Class
OilifyCommandBitmapEffect Class
SolarizeCommandBitmapEffect Class
GaussianCommandBitmapEffect Class
BricksTextureCommandBitmapEffect Class
DiffuseGlowCommandBitmapEffect Class
GlowCommandBitmapEffect Class
HalfTonePatternCommandBitmapEffect Class
HighPassCommandBitmapEffect Class
MaskConvolutionCommandBitmapEffect Class
PerspectiveCommandBitmapEffect Class
PlasmaCommandBitmapEffect Class
PointillistCommandBitmapEffect Class