1 year ago
#335202
Endymio
Drawing splines in varying color segments
I'm using GDI+ to draw a cardinal spline through a series of points. I wish to draw certain segments in a different color. I've tried drawing the segments individually with multiple Graphics::DrawCurve
calls, but this short-circuits the smoothing algorithm and results in the connection between segments being sharp points, rather than curves. I thought about a gradient brush, but I don't want a smooth color gradient, but rather an abrupt color change at certain points. Is this possible without duplicating the spline algorithm and manually drawing point-by-point?
winapi
gdi+
gdi
0 Answers
Your Answer