mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
e29df7e285
2000-12-15 Sven Neumann <sven@gimp.org> * app/gimppreviewcache.[ch]: added new function gimp_preview_scale(). * app/channel.c * app/channels_dialog.c * app/gimpimage.c * app/layer.c * app/layers_dialog.c * app/lc_dialog.c * app/nav_window.c: unified preview drawing code. Previews are never generated larger than the canvas size. Image and channel previews are scaled up to the desired size, so does the navigation window. The layer previews are not yet scaled up again since we can not use gimp_preview_scale here. I have removed the preview_cache priming code since we don't need it any longer and it caused bad results.
38 lines
1.3 KiB
C
38 lines
1.3 KiB
C
/* The GIMP -- an image manipulation program
|
|
* Copyright (C) 1999 Andy Thomas alt@gimp.org
|
|
*
|
|
* 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 __GIMPPREVIEWCACHE_H__
|
|
#define __GIMPPREVIEWCACHE_H__
|
|
|
|
|
|
#include "temp_buf.h"
|
|
|
|
|
|
TempBuf * gimp_preview_cache_get (GSList **plist,
|
|
gint width,
|
|
gint height);
|
|
void gimp_preview_cache_add (GSList **plist,
|
|
TempBuf *buf);
|
|
void gimp_preview_cache_invalidate (GSList **plist);
|
|
TempBuf * gimp_preview_scale (TempBuf *buf,
|
|
gint width,
|
|
gint height);
|
|
|
|
|
|
#endif /* __GIMPPREVIEWCACHE_H__ */
|