ImageEn, unit iexColorCurve

TIEColorCurve.WriteCurveToStr

TIEColorCurve.WriteCurveToStr


Declaration

function WriteCurveToStr(): string;


Description

Returns the curves of all channels as a string.

The string will 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'


Example

// 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

ReadCurveFromStr