![]() |
![]() |
![]() |
GIMP Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
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); GdkPixbuf * gimp_drawable_get_sub_thumbnail (gint32 drawable_ID, gint src_x, gint src_y, gint src_width, gint src_height, gint dest_width, gint dest_height, GimpPixbufTransparency alpha); gint32 gimp_layer_new_from_pixbuf (gint32 image_ID, const gchar *name, GdkPixbuf *pixbuf, gdouble opacity, GimpLayerModeEffects mode, gdouble progress_start, gdouble progress_end);
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.
|
the image ID |
|
the requested thumbnail width (<= 1024 pixels) |
|
the requested thumbnail height (<= 1024 pixels) |
|
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.
|
the drawable ID |
|
the requested thumbnail width (<= 1024 pixels) |
|
the requested thumbnail height (<= 1024 pixels) |
|
how to handle an alpha channel |
Returns : |
a new GdkPixbuf |
Since GIMP 2.2
GdkPixbuf * gimp_drawable_get_sub_thumbnail (gint32 drawable_ID, gint src_x, gint src_y, gint src_width, gint src_height, gint dest_width, gint dest_height, GimpPixbufTransparency alpha);
Retrieves a thumbnail pixbuf for the drawable identified by
drawable_ID
. The thumbnail will be not larger than the requested
size.
|
the drawable ID |
|
the x coordinate of the area |
|
the y coordinate of the area |
|
the width of the area |
|
the height of the area |
|
the requested thumbnail width (<= 1024 pixels) |
|
the requested thumbnail height (<= 1024 pixels) |
|
how to handle an alpha channel |
Returns : |
a new GdkPixbuf |
Since GIMP 2.2
gint32 gimp_layer_new_from_pixbuf (gint32 image_ID, const gchar *name, GdkPixbuf *pixbuf, gdouble opacity, GimpLayerModeEffects mode, gdouble progress_start, gdouble progress_end);
Create a new layer from a GdkPixbuf
.
This procedure creates a new layer from the given GdkPixbuf
. The
image has to be an RGB image and just like with gimp_layer_new()
you will still need to add the layer to it.
If you pass progress_end
> progress_start
to this function,
gimp_progress_update()
will be called for. You have to call
gimp_progress_init()
beforehand then.
|
The RGB image to which to add the layer. |
|
The layer name. |
|
A GdkPixbuf. |
|
The layer opacity. |
|
The layer combination mode. |
|
start of progress |
|
end of progress |
Returns : |
The newly created layer. |
Since GIMP 2.4