Method

GimpPatternget_pixels

since: 2.2

Declaration [src]

gboolean
gimp_pattern_get_pixels (
  GimpPattern* pattern,
  gint* width,
  gint* height,
  gint* bpp,
  GBytes** color_bytes
)

Description [src]

Gets information about the pattern (including pixels).

Gets information about the pattern: the pattern extents (width and height), its bpp, and its pixel data. The pixel data is an array in C or a list in some languages.

Available since: 2.2

Parameters

width

Type: gint*

The pattern width.

The argument will be set by the function.
height

Type: gint*

The pattern height.

The argument will be set by the function.
bpp

Type: gint*

The pattern bpp.

The argument will be set by the function.
color_bytes

Type: GBytes

The pattern 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.