Method

GimpBrushget_pixels

since: 2.2

Declaration [src]

gboolean
gimp_brush_get_pixels (
  GimpBrush* brush,
  gint* width,
  gint* height,
  gint* mask_bpp,
  GBytes** mask_bytes,
  gint* color_bpp,
  GBytes** color_bytes
)

Description [src]

Gets information about the brush.

Gets information about the brush: the brush extents (width and height) and its pixels data. The color bpp is zero and pixels empty when the brush is parametric versus raster.

Available since: 2.2

Parameters

width

Type: gint*

The brush width.

The argument will be set by the function.
height

Type: gint*

The brush height.

The argument will be set by the function.
mask_bpp

Type: gint*

The brush mask bpp.

The argument will be set by the function.
mask_bytes

Type: GBytes

The brush mask data.

The argument will be set by the function.
The caller of the method takes ownership of the data, and is responsible for freeing it.
color_bpp

Type: gint*

The brush color bpp.

The argument will be set by the function.
color_bytes

Type: GBytes

The brush color data.

The argument will be set by the function.
The caller of the method takes ownership of the data, and is responsible for freeing it.

Return value

Type: gboolean

TRUE on success.