←Select platform

Type Property

Summary
Gets or sets a value that controls the resulting image.
Syntax
C#
C++/CLI
Python
public ContourFilterCommandType Type { get; set; } 
public: 
property ContourFilterCommandType Type { 
   ContourFilterCommandType get(); 
   void set (    ContourFilterCommandType ); 
} 
Type # get and set (ContourFilterCommand) 

Property Value

Enumerated value that controls the resulting image. This value tells the method what process to complete before returning.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing.Effects; 
 
 
public void ContourFilterCommandExample() 
{ 
   // Load an image 
   RasterCodecs codecs = new RasterCodecs(); 
   codecs.ThrowExceptionsOnInvalidImages = true; 
 
   RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, @"ImageProcessingDemo\Beauty16.jpg"), 16, CodecsLoadByteOrder.BgrOrGray, 1, 1); 
 
   // Prepare the command 
   ContourFilterCommand command = new ContourFilterCommand(); 
   command.Threshold = 15; 
   command.DeltaDirection = 35; 
   command.MaximumError = 5; 
   command.Type = ContourFilterCommandType.Thin; 
   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:\LEADTOOLS23\Resources\Images"; 
} 
Requirements

Target Platforms

Help Version 23.0.2024.3.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 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.