Leadtools.Controls Namespace : InterpolationMode Enumeration |
Leadtools.Controls.InterpolationMode = function() { };
Leadtools.Controls.InterpolationMode.prototype = {
none = 0,
resample = 1,
scaleToGray = 2,
};
Value | Member | Description |
---|---|---|
0 | none | No interpolation. Default rendering by the platform. |
1 | resample | Use bilinear interpolation (resample) if the render operation needs to resize the image when zoom value is less than 1:1. This mode works for both bitonal (black/white) and color images. |
2 | scaleToGray | Enables grayscaling of bitonal images (such as black and white) if the render operation needs to resize the image when zoom value is less than 1:1. This mode produces slighly better result if the original image was black and white. However, in almost all cases, Resample produces similar results in quality and speed and should be used for all images. |
For more information, refer to Image Viewer Interpolation.
For an example, refer to InterpolationMode.