Method

GimpGradientsegment_range_split_uniform

since: 2.2

Declaration [src]

gboolean
gimp_gradient_segment_range_split_uniform (
  GimpGradient* gradient,
  gint start_segment,
  gint end_segment,
  gint split_parts
)

Description [src]

Splits each segment in the segment range uniformly

Splits each segment in the segment range uniformly into to the number of parts given. Returns an error when a segment index is out of range, or gradient is not editable.

Available since: 2.2

Parameters

start_segment

Type: gint

Index of the first segment to operate on.

end_segment

Type: gint

Index of the last segment to operate on. If negative, the range will extend to the end segment.

split_parts

Type: gint

The number of uniform divisions to split each segment to.

Return value

Type: gboolean

TRUE on success.