Visual Basic (Declaration) | |
---|---|
Public Class AutoColorLevelCommandBitmapEffect Inherits RasterCommandBitmapEffect |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class AutoColorLevelCommandBitmapEffect : RasterCommandBitmapEffect |
C++/CLI | |
---|---|
public ref class AutoColorLevelCommandBitmapEffect : public RasterCommandBitmapEffect |
XAML Property Element Usage | |
---|---|
AutoColorLevelCommandBitmapEffect ... |
XAML Property Element Usage | |
---|---|
AutoColorLevelCommandBitmapEffect ... |
Run the AutoColorLevelCommandBitmapEffect on an image.
Visual Basic | Copy Code |
---|---|
Public Sub AutoColorLevelCommandBitmapEffectExample(ByVal element As FrameworkElement) |
C# | Copy Code |
---|---|
public void AutoColorLevelCommandBitmapEffectExample(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.Color;assembly=Leadtools.Windows.Media.Effects"> |
This command makes the dark values darker and the light values lighter, which automatically enhances shadows and brightens the image. It also maximizes the tonal range of the image. It enhances the contrast and intensity using the image's histogram and a color distribution-based algorithm. If the image is a grayscale image, then AutoColorLevelCommandBitmapEffectsType.Level, AutoColorLevelCommandBitmapEffectsType.Contrast and AutoColorLevelCommandBitmapEffectsType.Intensity give identical results. As an example, the following figure shows an image before any automatic color leveling has been performed:
The following figure shows what would happen if you start with the original image and apply the AutoColorLevelCommandBitmapEffect using AutoColorLevelCommandBitmapEffectsType.Level flag.
The following figure shows what would happen if you start with the original image and apply the AutoColorLevelCommandBitmapEffect using AutoColorLevelCommandBitmapEffectsType.Intensity flag.
The following figure shows what would happen if you start with the original image and apply the AutoColorLevelCommandBitmapEffect using AutoColorLevelCommandBitmapEffectsType.Contrast flag.This command does not support signed data images.
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.Color.AutoColorLevelCommandBitmapEffect
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, Windows Server 2003 family, Windows Server 2008 family
Reference
AutoColorLevelCommandBitmapEffect MembersLeadtools.Windows.Media.Effects.Color Namespace
SharpenCommandBitmapEffect Class
PosterizeCommandBitmapEffect Class
MosaicCommandBitmapEffect Class
EmbossCommandBitmapEffect Class
MedianCommandBitmapEffect Class
AddNoiseCommandBitmapEffect Class
IntensityDetectCommandBitmapEffect Class
SpatialFilterCommandBitmapEffect Class
BinaryFilterCommandBitmapEffect Class
MaximumCommandBitmapEffect Class
MinimumCommandBitmapEffect Class
OilifyCommandBitmapEffect Class
SolarizeCommandBitmapEffect Class
GammaCorrectCommandBitmapEffect Class
AdjustTintCommandBitmapEffect Class