- public void append_filter (DrawableFilter filter)
This procedure appends the specified drawable effect at the top of the
effect list of this.
- public bool brightness_contrast (double brightness, double contrast)
Modify brightness/contrast in the specified drawable.
- public bool color_balance (TransferMode transfer_mode, bool preserve_lum, double cyan_red, double magenta_green, double yellow_blue)
Modify the color balance of the specified drawable.
- public bool colorize_hsl (double hue, double saturation, double lightness)
Render the drawable as a grayscale image seen through a colored glass.
- public bool curves_explicit (HistogramChannel channel, double[] values)
Modifies the intensity curve(s) for specified drawable.
- public bool curves_spline (HistogramChannel channel, double[] points)
Modifies the intensity curve(s) for specified drawable.
- public bool desaturate (DesaturateMode desaturate_mode)
Desaturate the contents of the specified drawable, with the specified
formula.
- public bool edit_bucket_fill (FillType fill_type, double x, double y)
Fill the area by a seed fill starting at the specified coordinates.
- public bool edit_clear ()
Clear selected area of drawable.
- public bool edit_fill (FillType fill_type)
Fill selected area of drawable.
- public bool edit_gradient_fill (GradientType gradient_type, double offset, bool supersample, int supersample_max_depth, double supersample_threshold, bool dither, double x1, double y1, double x2, double y2)
Draw a gradient between the starting and ending coordinates with the
specified gradient type.
- public bool edit_stroke_item (Item item)
Stroke the specified item
- public bool edit_stroke_selection ()
Stroke the current selection
- public bool equalize (bool mask_only)
Equalize the contents of the specified drawable.
- public bool extract_component (int component, bool invert, bool linear)
Extract a color model component.
- public bool fill (FillType fill_type)
Fill the drawable with the specified fill mode.
- public bool foreground_extract (ForegroundExtractMode mode, Drawable mask)
Extract the foreground of a drawable using a given trimap.
- public bool free_shadow ()
Free the specified drawable's shadow data (if it exists).
- public int get_bpp ()
Returns the bytes per pixel.
- public Buffer get_buffer ()
Returns a Buffer
of a specified drawable.
- public (unowned DrawableFilter)[] get_filters ()
Returns the list of filters applied to the drawable.
- public unowned Object? get_format ()
Returns the
Object format of the drawable.
- public int get_height ()
Returns the height of the drawable.
- public bool get_offsets (out int offset_x, out int offset_y)
Returns the offsets for the drawable.
- public Color get_pixel (int x_coord, int y_coord)
Gets the value of the pixel at the specified coordinates.
- public Buffer get_shadow_buffer ()
Returns a Buffer
of a specified drawable's shadow tiles.
- public Pixbuf get_sub_thumbnail (int src_x, int src_y, int src_width, int src_height, int dest_width, int dest_height, PixbufTransparency alpha)
Retrieves a thumbnail pixbuf for the drawable identified by
this.
- public Bytes get_sub_thumbnail_data (int src_x, int src_y, int src_width, int src_height, int dest_width, int dest_height, out int actual_width, out int actual_height, out int bpp)
Retrieves thumbnail data for the drawable identified by
this.
- public Pixbuf get_thumbnail (int width, int height, PixbufTransparency alpha)
Retrieves a thumbnail pixbuf for the drawable identified by
this.
- public Bytes? get_thumbnail_data (int width, int height, out int actual_width, out int actual_height, out int bpp)
Retrieves thumbnail data for the drawable identified by
this.
- public unowned Object? get_thumbnail_format ()
Returns the
Object thumbnail format of the drawable.
- public int get_width ()
Returns the width of the drawable.
- public bool has_alpha ()
Returns TRUE if the drawable has an alpha channel.
- public bool histogram (HistogramChannel channel, double start_range, double end_range, out double mean, out double std_dev, out double median, out double pixels, out double count, out double percentile)
Returns information on the intensity histogram for the specified
drawable.
- public bool hue_saturation (HueRange hue_range, double hue_offset, double lightness, double saturation, double overlap)
Modify hue, lightness, and saturation in the specified drawable.
- public bool invert (bool linear)
Invert the contents of the specified drawable.
- public bool is_gray ()
Returns whether the drawable is a grayscale type.
- public bool is_indexed ()
Returns whether the drawable is an indexed type.
- public bool is_rgb ()
Returns whether the drawable is an RGB type.
- public bool levels (HistogramChannel channel, double low_input, double high_input, bool clamp_input, double gamma, double low_output, double high_output, bool clamp_output)
Modifies intensity levels in the specified drawable.
- public bool levels_stretch ()
Automatically modifies intensity levels in the specified drawable.
- public bool mask_bounds (out int x1, out int y1, out int x2, out int y2)
Find the bounding box of the current selection in relation to the
specified drawable.
- public bool mask_intersect (out int x, out int y, out int width, out int height)
Find the bounding box of the current selection in relation to the
specified drawable.
- public void merge_filter (DrawableFilter filter)
This procedure applies the specified drawable effect on
this and merge it (therefore before any non-destructive effects are computed).
- public bool merge_filters ()
Merge the layer effect filters to the specified drawable.
- public bool merge_shadow (bool undo)
Merge the shadow buffer with the specified drawable.
- public bool offset (bool wrap_around, OffsetType fill_type, Color color, int offset_x, int offset_y)
Offset the drawable by the specified amounts in the X and Y directions
- public bool posterize (int levels)
Posterize the specified drawable.
- public bool set_pixel (int x_coord, int y_coord, Color color)
Sets the value of the pixel at the specified coordinates.
- public bool shadows_highlights (double shadows, double highlights, double whitepoint, double radius, double compress, double shadows_ccorrect, double highlights_ccorrect)
Perform shadows and highlights correction.
- public bool threshold (HistogramChannel channel, double low_threshold, double high_threshold)
Threshold the specified drawable.
- public ImageType type ()
Returns the drawable's type.
- public ImageType type_with_alpha ()
Returns the drawable's type with alpha.
- public bool update (int x, int y, int width, int height)
Update the specified region of the drawable.