Adobe Photoshop CS5 Object Library JS: ResampleMethod

Photoshop CS5

 The method to use to resample the image.

Value

NameDescriptionValue
ResampleMethod.BICUBICUses a weighted average to determine pixel color, which usually yields better results than the simple averageing method of downsampling.
The slowest but most precise method, resulting in the smoothest gradations.
int 4
ResampleMethod.BICUBICSHARPERA good method for reducing the size of an image based on Bicubic interpolation with enhanced sharpening. Maintains the detail in a resampled image. int 5
ResampleMethod.BICUBICSMOOTHERA good method for enlarging images based on Bicubic interpolation but designed to produce smoother results. int 6
ResampleMethod.BILINEARAverages the pixels in a sample area and replaces the entire area with the average pixel color at the specified resolution. Same as average downsampling. int 3
ResampleMethod.NEARESTNEIGHBORChooses a pixel in the center of the sample area and replaces the entire area with that pixel color. Same as subsampling.
Significantly reduces the conversion time compared with downsampling but results in images that are less smooth and continuous.
int 2
ResampleMethod.NONEDoes not resample. int 1

Usage

In function

void Document.resizeImage ([width: UnitValue][, height: UnitValue][, resolution: number][, resampleMethod: ResampleMethod=ResampleMethod.BICUBIC])

As property

Preferences.interpolation

Jongware, 28-Aug-2012 v3.0.3iContents :: Index