gimppreviewutil
Name
gimppreviewutil -- Utility functions for the preview.
Description
This module contains some utility functions for working with the preview.
Details
gimp_preview_get_temp_drawable ()
GimpDrawable* gimp_preview_get_temp_drawable
(GimpDrawable *drawable,
gint x,
gint y,
gint width,
gint height); |
Make a new GimpDrawable as a copy of an area from another GimpDrawable.
This function creates a new GimpImage to hold the result.
This function also copies the selection and active components.
If the drawable is a layer that has a layer mask it is copied too.
When the result is no longer needed it must be freed with gimp_preview_free_temp_drawable().
For performance reasons undo's have been disabled on the image.
gimp_preview_get_scaled_temp_drawable ()
GimpDrawable* gimp_preview_get_scaled_temp_drawable
(GimpDrawable *drawable,
gdouble scale,
gint x,
gint y,
gint width,
gint height); |
Make a new GimpDrawable as a scaled copy of an area from
another GimpDrawable.
This function creates a new GimpImage to hold the result.
This function also copies the selection and active components.
If the drawable is a layer that has a layer mask it is copied too.
When the result is no longer needed it must be freed with gimp_preview_free_temp_drawable().
For performance reasons undo's have been disabled on the image.