Image32_Resamplers

Resampling is used whenever an image's geometry (size or shape) is changed, whether by scaling, rotating, skewing or any other transformation. There are multiple resampling functions because each has its strengths and weaknesses.

The library supplies three resampling functions which can be selected using a unique numeric identifier:

Additional resamplers can be added using the RegisterResampler function. (The resampling function's unique identifier will be assigned when it's registered.)

When a TImage32 object is created, it's assigned the DefaultResampler (rBilinearResampler), which will be used if or when the image's geometry is changed. The TImage32's resampling function can easily be changed through its Resampler property.

rNearestResampler:
Fast, pixelated
rBilinearResampler:
Avg. speed, high quality
rBicubicResampler:
Slow, best quality
Original image:
(Unrotated)

See Also

TImage32, TImage32.Resampler, RegisterResampler