| GIMP Library Reference Manual |
|---|
gimppixbuf —
enum GimpPixbufTransparency; GdkPixbuf* gimp_image_get_thumbnail (gint32 image_ID, gint width, gint height, GimpPixbufTransparency alpha); GdkPixbuf* gimp_drawable_get_thumbnail (gint32 drawable_ID, gint width, gint height, GimpPixbufTransparency alpha);
typedef enum
{
GIMP_PIXBUF_KEEP_ALPHA,
GIMP_PIXBUF_SMALL_CHECKS,
GIMP_PIXBUF_LARGE_CHECKS
} GimpPixbufTransparency;
GdkPixbuf* gimp_image_get_thumbnail (gint32 image_ID, gint width, gint height, GimpPixbufTransparency alpha);
Retrieves a thumbnail pixbuf for the image identified by image_ID. The thumbnail will be not larger than the requested size.
| image_ID : | the image ID |
| width : | the requested thumbnail width (<= 512 pixels) |
| height : | the requested thumbnail height (<= 512 pixels) |
| alpha : | how to handle an alpha channel |
| Returns : | a new GdkPixbuf |
Since GIMP 2.2
GdkPixbuf* gimp_drawable_get_thumbnail (gint32 drawable_ID, gint width, gint height, GimpPixbufTransparency alpha);
Retrieves a thumbnail pixbuf for the drawable identified by drawable_ID. The thumbnail will be not larger than the requested size.
| drawable_ID : | the drawable ID |
| width : | the requested thumbnail width (<= 512 pixels) |
| height : | the requested thumbnail height (<= 512 pixels) |
| alpha : | how to handle an alpha channel |
| Returns : | a new GdkPixbuf |
Since GIMP 2.2
| << gimpimagecombobox | GimpProgressBar >> |