←Select platform

ResizeType Property

Summary
Gets or sets the resize algorithm type.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public ResizeInterpolateCommandType ResizeType { get; set; } 
@property (nonatomic, assign) LTResizeInterpolateCommandType resizeType; 
public ResizeInterpolateCommandType getResizeType(); 
public void setResizeType( 
   ResizeInterpolateCommandType resizeInterpolateCommandType 
); 
public: 
property ResizeInterpolateCommandType ResizeType { 
   ResizeInterpolateCommandType get(); 
   void set (    ResizeInterpolateCommandType ); 
} 
ResizeType # get and set (ResizeInterpolateCommand) 

Property Value

Value that represents the algorithm type used in resizing the image. For possible values refer to ResizeInterpolateCommandType.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing.Core; 
 
 
public void ResizeCommandExample() 
{ 
   // Load an image 
   RasterCodecs codecs = new RasterCodecs(); 
   codecs.ThrowExceptionsOnInvalidImages = true; 
 
   RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "sample5.cmp")); 
 
   // Prepare the command 
   ResizeInterpolateCommand command = new ResizeInterpolateCommand(); 
 
   // Resize the bitmap into 50 pixels x 50 pixels using the Bilinear algorithm. 
   command.Width = 50; 
   command.Height = 50; 
   command.ResizeType = ResizeInterpolateCommandType.Bilinear; 
   command.Run(image); 
 
} 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images"; 
} 
Requirements

Target Platforms

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

Leadtools.ImageProcessing.Core Assembly

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