Function

Gimpbrush_set_aspect_ratio

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 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 gdouble
 

The desired brush aspect ratio.

Return value

Returns: gdouble
 

The brush aspect ratio actually assigned.