SmoothEdgesCommand Class (original) (raw)

Summary

Smoothes the rough edges in the image.

Syntax

C#

Objective-C

C++/CLI

Java

Python

@interface LTSmoothEdgesCommand : LTRasterCommand 

public class SmoothEdgesCommand extends RasterCommand

class SmoothEdgesCommand(RasterCommand): 

Example

Run the SmoothEdgesCommand on an image.

using Leadtools; using Leadtools.Codecs; using Leadtools.ImageProcessing.Effects; public void SmoothEdgesCommandExample() { // Load an image RasterCodecs codecs = new RasterCodecs(); codecs.ThrowExceptionsOnInvalidImages = true; RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "sample5.cmp")); // Prepare the command SmoothEdgesCommand command = new SmoothEdgesCommand(); command.Amount = 75; command.Threshold = 0; // Apply the Smooth Edge effect to the image. command.Run(image); } static class LEAD_VARS { public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images"; }