←Select platform

ResizeInterpolateCommandType Enumeration

Summary
Represents the algorithm type used in resizing the image.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public enum ResizeInterpolateCommandType   
typedef NS_ENUM(NSInteger, LTResizeInterpolateCommandType) { 
 LTResizeInterpolateCommandTypeNormal = 0x0000,  
 LTResizeInterpolateCommandTypeResample = 0x0002,  
 LTResizeInterpolateCommandTypeBicubic = 0x0004,  
 LTResizeInterpolateCommandTypeTriangle = 0x0005,  
 LTResizeInterpolateCommandTypeHermite = 0x0006,  
 LTResizeInterpolateCommandTypeBell = 0x0007,  
 LTResizeInterpolateCommandTypeQuadraticBSpline = 0x0008,  
 LTResizeInterpolateCommandTypeCubicBSpline = 0x0009,  
 LTResizeInterpolateCommandTypeBoxFilter = 0x000A,  
 LTResizeInterpolateCommandTypeLanczos = 0x000B,  
 LTResizeInterpolateCommandTypeMichell = 0x000C,  
 LTResizeInterpolateCommandTypeCosine = 0x000D,  
 LTResizeInterpolateCommandTypeCatrom = 0x000E,  
 LTResizeInterpolateCommandTypeQuadratic = 0x000F,  
 LTResizeInterpolateCommandTypeCubicConvolution = 0x0010,  
 LTResizeInterpolateCommandTypeBilinear = 0x0011,  
 LTResizeInterpolateCommandTypeBresenham = 0x0012,  
}; 
public final class ResizeInterpolateCommandType 
    extends java.lang.Enum<ResizeInterpolateCommandType> 
public enum class ResizeInterpolateCommandType   
class ResizeInterpolateCommandType(Enum): 
   Normal = 0 
   Resample = 2 
   Bicubic = 4 
   Triangle = 5 
   Hermite = 6 
   Bell = 7 
   QuadraticBSpline = 8 
   CubicBSpline = 9 
   BoxFilter = 10 
   Lanczos = 11 
   Michell = 12 
   Cosine = 13 
   Catrom = 14 
   Quadratic = 15 
   CubicConvolution = 16 
   Bilinear = 17 
   Bresenham = 18 
Members
ValueMemberDescription
0Normal This is the fastest one. Not recommended at all, because aliasing is present everywhere.
2Resample Use linear interpolation and averaging to produce a higher-quality image.
4Bicubic Bicubic interpolation and averaging produces a high quality image. This is slower than ResizeInterpolateCommandType.Bilinear.
5Triangle Triangular-peaked weighting average produces a high quality image.
6Hermite Hermite interpolation produces a good quality image better than ResizeInterpolateCommandType.Bresenham but less than ResizeInterpolateCommandType.Bilinear. It uses the cubic spline from Hermite interpolation. This is Slower than ResizeInterpolateCommandType.Bilinear.
7Bell Bell interpolation to produces a high quality .This filter blurs the image and at the same time it resizes If you want a performance similar to bicubic filtering, but your source image is noisy, then try this one.
8QuadraticBSpline Quadratic B-Spline interpolation produces a smooth quality image but less than ResizeInterpolateCommandType.CubicBSpline. This is Faster than ResizeInterpolateCommandType.Bicubic but less than ResizeInterpolateCommandType.CubicBSpline.
9CubicBSpline Cubic B-Spline interpolation produces a very smooth quality image(most blurry). One step further from ResizeInterpolateCommandType.Bell. A bit slower and more blurred image, but less noisy and less sharp though). This is faster than ResizeInterpolateCommandType.Bicubic.
10BoxFilter Equivalent to Nearest Neighbor on upsampling, averages pixels on downsampling, gives best result for images with single pixels lines.
11Lanczos Lanczos interpolation that uses Sinc (sinx/x) to produce a high quality image. Provides the best quality but it is rather slow.
12Michell Michel interpolation produces a smooth quality image but less than ResizeInterpolateCommandType.Bell. A bit slower and more blurred image, but less noisy and less sharp though). This is faster than ResizeInterpolateCommandType.QuadraticBSpline. This is slower than ResizeInterpolateCommandType.Bell. A bit slower and more blurred image, but less noisy and less sharp though). This is slower than ResizeInterpolateCommandType.Bicubic.
13Cosine Uses the Cosine function in the interpolation to produce a good quality image.
14Catrom CatmullRom interpolation produces a high quality image. Slower than ResizeInterpolateCommandType.Bicubic, but faster than ResizeInterpolateCommandType.Lanczos.
15Quadratic Quadratic interpolation produces a high quality image, but less than ResizeInterpolateCommandType.Bilinear. Slower than ResizeInterpolateCommandType.Bicubic.
16CubicConvolution Interpolation to produce high quality image (enhances the image edges). Slower than ResizeInterpolateCommandType.Bicubic.
17Bilinear Bilinear interpolation and averaging produces a high-quality image. It is fast but slower than ResizeInterpolateCommandType.Normal and ResizeInterpolateCommandType.Bresenham.
18Bresenham Bresenham interpolation and averaging produces a good quality image(better than ResizeInterpolateCommandType.Normal). This is slower than ResizeInterpolateCommandType.Normal but faster than ResizeInterpolateCommandType.Bilinear.
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.Core Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.