Declaration ​
pascal
TBilinearGradientSampler = class(TCustomSparsePointGradientSampler)Description ​
A sparse point gradient interpolator using a inverse bilinear interpolation.
Based on four (and only four) vertices, with each vertex specified with a certain color, an inverse bilinear interpolation of color is calculated. Outside this the colours extends as before, but discontinuities may occur.

Mathematics & Algorithm ​
Given 4 vertex coordinates