Gradient
Object Hierarchy:
Description:
[
CCode ( type_id =
"gimp_gradient_get_type ()" ) ]
public class Gradient :
Resource,
ConfigInterface
Installable object used by the gradient rendering tool.
Content:
Static methods:
Creation methods:
Methods:
- public Color[] get_custom_samples (double[] positions, bool reverse)
Sample the gradient in custom positions.
- public int get_number_of_segments ()
Gets the number of segments of the gradient
- public Color[] get_uniform_samples (int num_samples, bool reverse)
Sample the gradient in uniform parts.
- public bool segment_get_blending_function (int segment, out GradientSegmentType blend_func)
Gets the gradient segment's blending function
- public bool segment_get_coloring_type (int segment, out GradientSegmentColor coloring_type)
Gets the gradient segment's coloring type
- public Color segment_get_left_color (int segment)
Gets the left endpoint color of the segment
- public bool segment_get_left_pos (int segment, out double pos)
Gets the left endpoint position of a segment
- public bool segment_get_middle_pos (int segment, out double pos)
Gets the midpoint position of the segment
- public Color segment_get_right_color (int segment)
Gets the right endpoint color of the segment
- public bool segment_get_right_pos (int segment, out double pos)
Gets the right endpoint position of the segment
- public bool segment_range_blend_colors (int start_segment, int end_segment)
Blend the colors of the segment range.
- public bool segment_range_blend_opacity (int start_segment, int end_segment)
Blend the opacity of the segment range.
- public bool segment_range_delete (int start_segment, int end_segment)
Delete the segment range
- public bool segment_range_flip (int start_segment, int end_segment)
Flip the segment range
- public double segment_range_move (int start_segment, int end_segment, double delta, bool control_compress)
Move the position of an entire segment range by a delta.
- public bool segment_range_redistribute_handles (int start_segment, int end_segment)
Uniformly redistribute the segment range's handles
- public bool segment_range_replicate (int start_segment, int end_segment, int replicate_times)
Replicate the segment range
- public bool segment_range_set_blending_function (int start_segment, int end_segment, GradientSegmentType blending_function)
Sets the blending function of a range of segments
- public bool segment_range_set_coloring_type (int start_segment, int end_segment, GradientSegmentColor coloring_type)
Sets the coloring type of a range of segments
- public bool segment_range_split_midpoint (int start_segment, int end_segment)
Splits each segment in the segment range at midpoint
- public bool segment_range_split_uniform (int start_segment, int end_segment, int split_parts)
Splits each segment in the segment range uniformly
- public bool segment_set_left_color (int segment, Color color)
Sets the left endpoint color of a segment
- public bool segment_set_left_pos (int segment, double pos, out double final_pos)
Sets the left endpoint position of the segment
- public bool segment_set_middle_pos (int segment, double pos, out double final_pos)
Sets the midpoint position of the segment
- public bool segment_set_right_color (int segment, Color color)
Sets the right endpoint color of the segment
- public bool segment_set_right_pos (int segment, double pos, out double final_pos)
Sets the right endpoint position of the segment
Inherited Members:
All known members inherited from class Gimp.Resource
All known members inherited from class GLib.Object
All known members inherited from interface Gimp.ConfigInterface