←Select platform

Filter Property

Summary
Gets or sets a value that indicates the type of anti-aliasing filter to use.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public AntiAliasingCommandType Filter { get; set; } 
@property (nonatomic, assign) LTAntiAliasingCommandType filter; 
public AntiAliasingCommandType getFilter(); 
public void setFilter( 
   AntiAliasingCommandType antiAliasingCommandType 
); 
public: 
property AntiAliasingCommandType Filter { 
   AntiAliasingCommandType get(); 
   void set (    AntiAliasingCommandType ); 
} 
Filter # get and set (AntiAliasingCommand) 

Property Value

Value that indicates the type of anti-aliasing filter to use.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing.Effects; 
 
 
public void AntiAliasingCommandExample() 
{ 
   // Load an image 
   RasterCodecs codecs = new RasterCodecs(); 
   codecs.ThrowExceptionsOnInvalidImages = true; 
 
   RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "Jagged.jpg")); 
 
   // Prepare the command 
   AntiAliasingCommand command = new AntiAliasingCommand(); 
   //do the anti-aliasing on the image. 
   command.Threshold = 25; 
   command.Dimension = 7; 
   command.Filter = AntiAliasingCommandType.Type1; 
   command.Run(image); 
   codecs.Save(image, Path.Combine(LEAD_VARS.ImagesDir, "Result.jpg"), RasterImageFormat.Jpeg, 24); 
 
} 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images"; 
} 
Requirements

Target Platforms

Help Version 22.0.2023.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ImageProcessing.Effects Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.