Declaration
procedure ReadCurveFromStr(const s: string);
Description
Sets the curves of all channels to values specified in a string.
The string should be formatted as follows:
rgbX1,rgbY1,rgbX2,rgbY2,rgbX3,rgbY3,...|redX1,redY1,redX2,redY2,redX3,redY3,...|greenX1,greenY1,greenX2,greenY2,greenX3,greenY3,...|blueX1,blueY1,blueX2,blueY2,blueX3,blueY3,...
e.g. '0,0,112,73,255,255|0,0,255,255|0,0,255,255|0,0,255,255'
// Save curve to ini file
s := IEColorCurve1.WriteCurveToStr();
ini.WriteString( 'Settings', 'CurvePoints', s );
// Read curve from ini file
s := ini.ReadString( 'Settings', 'CurvePoints', '' );
IEColorCurve1.ReadCurveFromStr( s );
See Also
◼WriteCurveToStr