Function

Gimpbrush_set_aspect_ratio

since: 2.4

Declaration [src]

gdouble
gimp_brush_set_aspect_ratio (
  const gchar* name,
  gdouble aspect_ratio_in
)

Description [src]

Sets the aspect ratio of a generated brush.

This procedure sets the aspect ratio for a generated brush. If called for any other type of brush, it does not succeed. The value should be a float between 0.0 and 1000.0.

Available since: 2.4

Parameters

name

Type: const gchar*

The brush name.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
aspect_ratio_in

Type: gdouble

The desired brush aspect ratio.

Return value

Type: gdouble

The brush aspect ratio actually assigned.