Divides the image into rectangular or circular cells and then recreates the image by filling those cells with the minimum, maximum, or average pixel value, depending upon the effect that was selected. This command is available in the Imaging Pro and above toolkits.
An example of circular cell division can be seen below: This is the original image:
The image below is the result of the following settings: command.Flags = PixelateCommandFlags.Radial | PixelateCommandFlags.WidthPeriod | PixelateCommandFlags.HeightPeriod | PixelateCommandFlags.Average; command.CellWidth = 90; command.CellHeight = 40; This indicates the circular cells are divided into 90 degree cell divisions and each cell has a radial length of 40 pixels. Each cell division is filled with the average value for that cell division.
The image below is the result of the following settings: command.Flags = PixelateCommandFlags.Radial | PixelateCommandFlags.WidthFrequency | PixelateCommandFlags.HeightFrequency | PixelateCommandFlags.Average; command.CellWidth = 90; command.CellHeight = 40; This indicates the circular cells are divided into 90 separate cell divisions around the center point and there are 40 cell divisions along the radius. Each cell division is filled with the average value for that cell division.
This command does not support signed data images.
For more information, refer to Applying Artistic Effects.
Run the PixelateCommand on an image. by dividing it into circular cells with angle length = 5, and radius = 10.
Leadtools.ImageProcessing.SpecialEffects Namespace
Leadtools.ImageProcessing.Effects.AddNoiseCommand
Leadtools.ImageProcessing.Effects.EmbossCommand
Leadtools.ImageProcessing.Effects.MosaicCommand
Leadtools.ImageProcessing.Effects.MotionBlurCommand
Leadtools.ImageProcessing.Effects.OilifyCommand
Leadtools.ImageProcessing.Color.PosterizeCommand
Leadtools.ImageProcessing.Color.RemoveRedEyeCommand
Leadtools.ImageProcessing.Color.SolarizeCommand
Leadtools.ImageProcessing.Effects.CubismCommand
Leadtools.ImageProcessing.Color.SampleTargetCommand
Leadtools.ImageProcessing.Effects.DisplacementCommand
Leadtools.ImageProcessing.Core.HalfTonePatternCommand
Leadtools.ImageProcessing.Effects.MaskConvolutionCommand
Products |
Support |
Feedback: PixelateCommand Class - Leadtools.ImageProcessing.SpecialEffects |
Introduction |
Help Version 19.0.2017.3.21
|