[Gimp-developer] API to parse a saved GIMP's curves f ile
- From: Alessandro Francesconi <alessandrofrancesconi live it>
- To: "gimp-developer-list gnome org" <gimp-developer-list gnome org>
- Subject: [Gimp-developer] API to parse a saved GIMP's curves f ile
- Date: Wed, 25 Sep 2013 09:21:55 +0000
Hello, I’m developing a plugin that must read the contents of a GIMP “curves” file and build an array of
points, in order to finally call the gimp_curves_spline()
function:http://developer.gimp.org/api/2.0/libgimp/libgimp-gimpcolor.html#gimp-curves-spline
I’m talking about the kind of file that is produced when a user goes to the Curves dialog and clicks on
“Export Settings to File”. An example of file is the following:
# GIMP curves tool settings
(time 0)
(channel value)
(curve
(curve-type smooth)
(n-points 17)
(points 34 0.000000 0.000000 -1.000000 -1.000000 [other X Y points...])
(n-samples 256)
(samples 256 0.000000 0.012218 0.024425 0.036608 0.048757 0.060859 0.072904 0.084878 0.096772 0.108573
0.120270 0.131851 0.143305 0.154619 0.165783 0.176785 0.187612 0.198255 0.208700 0.218937 0.228954 0.238739
0.248281 0.257568 0.266589 0.275331 0.283784 0.291935 0.299774 0.307288 [other samples...])
)
Is there a group of functions ready to be used to parse this kind of file? Or I need to build it my myself?
Thank you,
Ale
www.alessandrofrancesconi.it
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]