API to parse a saved GIMP's curves file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
gimp-developer-list mailing list
List address:    gimp-developer-list@xxxxxxxxx
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list





[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux