Sven Neumann wrote: > > Hi, > > Gordon Royle <gordon@xxxxxxxxxxxxx> writes: > > > What is the format of the GIMP gradient files? > > this routine saves the gradient. You should be able to determine the > format from this info: <snip routine> Really? In 1.2, it appears to be this... fprintf (file, "%d\n", num_segments); for (seg = grad->segments; seg; seg = seg->next) fprintf (file, "%f %f %f %f %f %f %f %f %f %f %f %d %d\n", seg->left, seg->middle, seg->right, seg->r0, seg->g0, seg->b0, seg->a0, seg->r1, seg->g1, seg->b1, seg->a1, (int) seg->type, (int) seg->color); Why the huge change? Dave. -- David Neary, Marseille, France E-Mail: bolsh@xxxxxxxx