mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-24 07:11:04 +00:00
68fd1809bd
2003-12-09 Michael Natterer <mitch@gimp.org> * app/base/tile-manager.c (tile_manager_get_memsize): return a more exact result. * app/core/gimpimage-scale.[ch] (gimp_image_scale_check): estimate the new memsize by separating parts of the image that are constant from parts that will scale. Also take undo logic into account. Return the estimated new memsize since it's not trivial to calculate. * app/gui/image-commands.c (image_scale_callback): use the memsize returned by gimp_image_scale_check() for the warning message. Free allocated strings.
38 lines
1.6 KiB
C
38 lines
1.6 KiB
C
/* The GIMP -- an image manipulation program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattisbvf
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __GIMP_IMAGE_SCALE_H__
|
|
#define __GIMP_IMAGE_SCALE_H__
|
|
|
|
|
|
void gimp_image_scale (GimpImage *gimage,
|
|
gint new_width,
|
|
gint new_height,
|
|
GimpInterpolationType interpolation_type,
|
|
GimpProgressFunc progress_func,
|
|
gpointer progress_data);
|
|
|
|
GimpImageScaleCheckType
|
|
gimp_image_scale_check (const GimpImage *gimage,
|
|
gint new_width,
|
|
gint new_height,
|
|
gint64 *new_memsize);
|
|
|
|
|
|
#endif /* __GIMP_IMAGE_SCALE_H__ */
|