The AverageActivity Class is available in LEADTOOLS Document and Medical Imaging toolkits.
Changes the color of each pixel in an image to the average color of the pixels in its neighborhood. This results in a blur effect.![](dotnetdiagramimages/Leadtools_Workflow_ImageProcessing_Leadtools_Workflow_ImageProcessing_AverageActivity.png)
Visual Basic (Declaration) | |
---|---|
Public Class AverageActivity Inherits ImageProcessingBaseActivity Implements IComponent, IDisposable |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As AverageActivity |
C# | |
---|---|
public class AverageActivity : ImageProcessingBaseActivity, IComponent, IDisposable |
C++/CLI | |
---|---|
public ref class AverageActivity : public ImageProcessingBaseActivity, IComponent, IDisposable |
- Control the amount of blur by specifying the size of the neighborhood that is used for averaging.
- This activity supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.
- This activity does not support 32-bit grayscale images.
System.Object
System.Workflow.ComponentModel.DependencyObject
System.Workflow.ComponentModel.Activity
Leadtools.Workflow.Raster.WorkflowImageActivity
Leadtools.Workflow.Raster.DisposableImageActivity
Leadtools.Workflow.ImageProcessing.ImageProcessingBaseActivity
Leadtools.Workflow.ImageProcessing.AverageActivity
Target Platforms: Microsoft .NET Framework 3.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7