.. _ResampleMethod: ================================================ ResampleMethod ================================================ Description ----------- The method to use to resample the image. Static Properties ^^^^^^^^^^^^^^^^^ +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`AUTOMATIC` readonly | | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`BICUBIC` readonly | Uses a weighted average to determine pixel color, which usually yields better results than the simple averageing method of downsampling. | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`BICUBICAUTOMATIC` readonly | | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`BICUBICSHARPER` readonly | A good method for reducing the size of an image based on Bicubic interpolation with enhanced sharpening. Maintains the detail in a resampled image. | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`BICUBICSMOOTHER` readonly | A good method for enlarging images based on Bicubic interpolation but designed to produce smoother results. | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`BILINEAR` readonly | Averages the pixels in a sample area and replaces the entire area with the average pixel color at the specified resolution. Same as average downsampling. | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`NEARESTNEIGHBOR` readonly | Chooses a pixel in the center of the sample area and replaces the entire area with that pixel color. Same as subsampling. | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`NONE` readonly | Does not resample. | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PRESERVEDETAILS` readonly | | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ .. container:: hide .. toctree:: :hidden: :maxdepth: 1 ResampleMethod/NONE.rst ResampleMethod/NEARESTNEIGHBOR.rst ResampleMethod/BILINEAR.rst ResampleMethod/BICUBIC.rst ResampleMethod/BICUBICSHARPER.rst ResampleMethod/BICUBICSMOOTHER.rst ResampleMethod/BICUBICAUTOMATIC.rst ResampleMethod/AUTOMATIC.rst ResampleMethod/PRESERVEDETAILS.rst