Method
GimpPatternget_pixels
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 |
gint* |
The pattern width. |
|
The argument will be set by the function. | |
height |
gint* |
The pattern height. |
|
The argument will be set by the function. | |
bpp |
gint* |
The pattern bpp. |
|
The argument will be set by the function. | |
color_bytes |
GBytes |
The pattern data. |
|
The argument will be set by the function. | |
The instance takes ownership of the data, and is responsible for freeing it. |