Method
GimpDrawableget_thumbnail_data
Declaration [src]
GBytes*
gimp_drawable_get_thumbnail_data (
GimpDrawable* drawable,
gint width,
gint height,
gint* actual_width,
gint* actual_height,
gint* bpp
)
Description [src]
Retrieves thumbnail data for the drawable identified by drawable.
The thumbnail will be not larger than the requested size.
Parameters
width-
Type:
gintThe requested thumbnail width (<= 1024 pixels).
height-
Type:
gintThe requested thumbnail height (<= 1024 pixels).
actual_width-
Type:
gint*The resulting thumbnail’s actual width.
The argument will be set by the function. actual_height-
Type:
gint*The resulting thumbnail’s actual height.
The argument will be set by the function. bpp-
Type:
gint*The bytes per pixel of the returned thubmnail data.
The argument will be set by the function.
Return value
Type: GBytes
Thumbnail data or NULL if
drawable is invalid.
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |
The return value can be NULL. |