gimpgradient: GIMP Library Reference Manual

## gimpgradient gimpgradient |

## Functions

gchar * | gimp_gradient_new ()
gchar * | gimp_gradient_duplicate ()
gchar * | gimp_gradient_rename ()
gboolean | gimp_gradient_delete ()
gboolean | gimp_gradient_is_editable ()
gboolean | gimp_gradient_get_uniform_samples ()
gboolean | gimp_gradient_get_custom_samples ()
gint | gimp_gradient_get_number_of_segments ()
gboolean | gimp_gradient_segment_get_left_color ()
gboolean | gimp_gradient_segment_set_left_color ()
gboolean | gimp_gradient_segment_get_right_color ()
gboolean | gimp_gradient_segment_set_right_color ()
gboolean | gimp_gradient_segment_get_left_pos ()
gboolean | gimp_gradient_segment_set_left_pos ()
gboolean | gimp_gradient_segment_get_middle_pos ()
gboolean | gimp_gradient_segment_set_middle_pos ()
gboolean | gimp_gradient_segment_get_right_pos ()
gboolean | gimp_gradient_segment_set_right_pos ()
gboolean | gimp_gradient_segment_get_blending_function ()
gboolean | gimp_gradient_segment_get_coloring_type ()
gboolean | gimp_gradient_segment_range_set_blending_function ()
gboolean | gimp_gradient_segment_range_set_coloring_type ()
gboolean | gimp_gradient_segment_range_flip ()
gboolean | gimp_gradient_segment_range_replicate ()
gboolean | gimp_gradient_segment_range_split_midpoint ()
gboolean | gimp_gradient_segment_range_split_uniform ()
gboolean | gimp_gradient_segment_range_delete ()
gboolean | gimp_gradient_segment_range_redistribute_handles ()
gboolean | gimp_gradient_segment_range_blend_colors ()
gboolean | gimp_gradient_segment_range_blend_opacity ()
gdouble | gimp_gradient_segment_range_move ()

## Description

## Functions

### gimp_gradient_new ()

    gchar *
    gimp_gradient_new (const gchar *name);

Since: GIMP 2.2

### gimp_gradient_duplicate ()

    gchar *
    gimp_gradient_duplicate (const gchar *name);

Since: GIMP 2.2

### gimp_gradient_rename ()

    gchar *
    gimp_gradient_rename (const gchar *name,
                          const gchar *new_name);

Since: GIMP 2.2

### gimp_gradient_delete ()

    gboolean
    gimp_gradient_delete (const gchar *name);

Since: GIMP 2.2

### gimp_gradient_is_editable ()

    gboolean
    gimp_gradient_is_editable (const gchar *name);

Since: GIMP 2.4

### gimp_gradient_get_uniform_samples ()

    gboolean
    gimp_gradient_get_uniform_samples (const gchar *name,
                                       gint num_samples,
                                       gboolean reverse,
                                       gint *num_color_samples,
                                       gdouble **color_samples);

Since: GIMP 2.2

### gimp_gradient_get_custom_samples ()

    gboolean
    gimp_gradient_get_custom_samples (const gchar *name,
                                      gint num_samples,
                                      const gdouble *positions,
                                      gboolean reverse,
                                      gint *num_color_samples,
                                      gdouble **color_samples);

Since: GIMP 2.2

### gimp_gradient_get_number_of_segments ()

    gint
    gimp_gradient_get_number_of_segments (const gchar *name);

Since: GIMP 2.6

### gimp_gradient_segment_get_left_color ()

    gboolean
    gimp_gradient_segment_get_left_color (const gchar *name,
                                          gint segment,
                                          GimpRGB *color,
                                          gdouble *opacity);

Since: GIMP 2.2

### gimp_gradient_segment_set_left_color ()

    gboolean
    gimp_gradient_segment_set_left_color (const gchar *name,
                                          gint segment,
                                          const GimpRGB *color,
                                          gdouble opacity);

Since: GIMP 2.2

### gimp_gradient_segment_get_right_color ()

    gboolean
    gimp_gradient_segment_get_right_color (const gchar *name,
                                           gint segment,
                                           GimpRGB *color,
                                           gdouble *opacity);

Since: GIMP 2.2

### gimp_gradient_segment_set_right_color ()

    gboolean
    gimp_gradient_segment_set_right_color (const gchar *name,
                                           gint segment,
                                           const GimpRGB *color,
                                           gdouble opacity);

Since: GIMP 2.2

### gimp_gradient_segment_get_left_pos ()

    gboolean
    gimp_gradient_segment_get_left_pos (const gchar *name,
                                        gint segment,
                                        gdouble *pos);

Since: GIMP 2.2

### gimp_gradient_segment_set_left_pos ()

    gboolean
    gimp_gradient_segment_set_left_pos (const gchar *name,
                                        gint segment,
                                        gdouble pos,
                                        gdouble *final_pos);

Since: GIMP 2.2

### gimp_gradient_segment_get_middle_pos ()

    gboolean
    gimp_gradient_segment_get_middle_pos (const gchar *name,
                                          gint segment,
                                          gdouble *pos);

Since: GIMP 2.2

### gimp_gradient_segment_set_middle_pos ()

    gboolean
    gimp_gradient_segment_set_middle_pos (const gchar *name,
                                          gint segment,
                                          gdouble pos,
                                          gdouble *final_pos);

Since: GIMP 2.2

### gimp_gradient_segment_get_right_pos ()

    gboolean
    gimp_gradient_segment_get_right_pos (const gchar *name,
                                         gint segment,
                                         gdouble *pos);

Since: GIMP 2.2

### gimp_gradient_segment_set_right_pos ()

    gboolean
    gimp_gradient_segment_set_right_pos (const gchar *name,
                                         gint segment,
                                         gdouble pos,
                                         gdouble *final_pos);

Since: GIMP 2.2

### gimp_gradient_segment_get_blending_function ()

    gboolean
    gimp_gradient_segment_get_blending_function
                                   (const gchar *name,
                                    gint segment,
                                    GimpGradientSegmentType *blend_func);

Since: GIMP 2.2

### gimp_gradient_segment_get_coloring_type ()

    gboolean
    gimp_gradient_segment_get_coloring_type
                                   (const gchar *name,
                                    gint segment,
                                    GimpGradientSegmentColor *coloring_type);

Since: GIMP 2.2

### gimp_gradient_segment_range_set_blending_function ()

    gboolean
    gimp_gradient_segment_range_set_blending_function
                                   (const gchar *name,
                                    gint start_segment,
                                    gint end_segment,
                                    GimpGradientSegmentType blending_function);

Since: GIMP 2.2

### gimp_gradient_segment_range_set_coloring_type ()

    gboolean
    gimp_gradient_segment_range_set_coloring_type
                                   (const gchar *name,
                                    gint start_segment,
                                    gint end_segment,
                                    GimpGradientSegmentColor coloring_type);

Since: GIMP 2.2

### gimp_gradient_segment_range_flip ()

    gboolean
    gimp_gradient_segment_range_flip (const gchar *name,
                                      gint start_segment,
                                      gint end_segment);

Since: GIMP 2.2

### gimp_gradient_segment_range_replicate ()

    gboolean
    gimp_gradient_segment_range_replicate (const gchar *name,
                                           gint start_segment,
                                           gint end_segment,
                                           gint replicate_times);

Since: GIMP 2.2

### gimp_gradient_segment_range_split_midpoint ()

    gboolean
    gimp_gradient_segment_range_split_midpoint
                                   (const gchar *name,
                                    gint start_segment,
                                    gint end_segment);

Since: GIMP 2.2

### gimp_gradient_segment_range_split_uniform ()

    gboolean
    gimp_gradient_segment_range_split_uniform
                                   (const gchar *name,
                                    gint start_segment,
                                    gint end_segment,
                                    gint split_parts);

Since: GIMP 2.2

### gimp_gradient_segment_range_delete ()

    gboolean
    gimp_gradient_segment_range_delete (const gchar *name,
                                        gint start_segment,
                                        gint end_segment);

Since: GIMP 2.2

### gimp_gradient_segment_range_redistribute_handles ()

    gboolean
    gimp_gradient_segment_range_redistribute_handles
                                   (const gchar *name,
                                    gint start_segment,
                                    gint end_segment);

Since: GIMP 2.2

### gimp_gradient_segment_range_blend_colors ()

    gboolean
    gimp_gradient_segment_range_blend_colors
                                   (const gchar *name,
                                    gint start_segment,
                                    gint end_segment);

Since: GIMP 2.2

### gimp_gradient_segment_range_blend_opacity ()

    gboolean
    gimp_gradient_segment_range_blend_opacity
                                   (const gchar *name,
                                    gint start_segment,
                                    gint end_segment);

Since: GIMP 2.2

### gimp_gradient_segment_range_move ()

    gdouble
    gimp_gradient_segment_range_move (const gchar *name,
                                      gint start_segment,
                                      gint end_segment,
                                      gdouble delta,
                                      gboolean control_compress);

Since: GIMP 2.2

## Types and Values