TKernelMode

Graphics32

TKernelMode

type TKernelMode = (kmDynamic, kmTableNearest, kmTableLinear);

Description

TKernelMode defines how a kernel will be used in TKernelResampler, when GetSample methods are called.

  • kmDynamic - Uses direct calls to the kernels filter method. Being precise, this mode is also quite expensive. The curve display in the resamplers example shows how the different weight curves are configured.
  • kmTableNearest - Uses precalculated weight tables. Being the fastest, this mode can produce fair results. An option is to increase the tablesize.
  • kmTableLinear - Uses precalculated weight tables, but in contrast to kmTableNearest this mode will perform linear interpolation between precalculated weights. Being somewhat slower than kmTableNearest, but faster than kmDynamic, this mode produces results good results.

See Also

Examples, TKernelResampler.GetSample, TKernelResampler.TableSize, TCustomKernel, TKernelResampler