TBarycentricGradientSampler

Ancestors

TPersistent
   |
TNotifiablePersistent
   |
TCustomSampler
   |
TCustomSparsePointGradientSampler

Description

A sparse point gradient interpolator using a barycentric coordinate system for interpolation
Based on three (and only three) vertices, with each vertex specified with a certain color, a linear triangle of color is calculated. Outside this triangle the colours continue as before.


Figure 1: Output of a TBarycentricGradientSampler with the underlying triangle vertices marked with circles


Reference

Methods Properties Events
In TBarycentricGradientSampler:
Create
GetSample
IsPointInTriangle
PrepareSampling
SetColorPoints
SetPoints
In TCustomSparsePointGradientSampler:
Color
ColorPoint
Count
Point
In TCustomSampler:
FinalizeSampling
GetSampleBounds
HasBounds
In TNotifiablePersistent:
BeginUpdate UpdateCount OnChange
Changed
Destroy
EndUpdate

See Also

Examples