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.

Fast, pixelated
Avg. speed, high quality
Slow, best quality
Original image:

See Also

TImage32, TImage32.Resampler, RegisterResampler