←Select platform

Type Property

Summary
Gets or sets the adjustment method.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public AdaptiveContrastCommandType Type { get; set; } 
@property (nonatomic, assign) LTAdaptiveContrastCommandType type; 
public AdaptiveContrastCommandType getType(); 
public void setType( 
   AdaptiveContrastCommandType adaptiveContrastCommandType 
); 
Type # get and set (AdaptiveContrastCommand) 

Property Value

The adjustment method to use.

Example

Run the AdaptiveContrastCommand on an image.

C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing.Color; 
 
 
public void TypePropertyExample() 
{ 
   // Load an image 
   RasterCodecs codecs = new RasterCodecs(); 
   codecs.ThrowExceptionsOnInvalidImages = true; 
 
   RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "sample1.cmp")); 
 
   // Prepare the command 
   AdaptiveContrastCommand command = new AdaptiveContrastCommand(); 
   command.Amount = 200; 
   command.Dimension = 9; 
   command.Type = AdaptiveContrastCommandType.Linear; 
   //Apply Adaptive Contrast Enhancement. 
   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.Color Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.