Files
gimp/app/core/gimpimage-flip.h
Ell 2558d77d1c app: add gimp_image_flip_full()
... which takes the symmetry axis as a parameter, instead of hard-
coding the axis to the middle of the image, and which additionally
takes the clipping mode as a parameter, controlling whether to clip
or resize the canvas.  Note that the actual canvas size never
changes, but it may be offset when flipped around an off-center
axis, without clipping.

Implement gimp_image_flip() in terms of gimp_image_flip_full().

(cherry picked from commit ae080f06f9)
2019-08-11 00:29:32 +03:00

35 lines
1.4 KiB
C

/* GIMP - The GNU 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 3 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, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_IMAGE_FLIP_H__
#define __GIMP_IMAGE_FLIP_H__
void gimp_image_flip (GimpImage *image,
GimpContext *context,
GimpOrientationType flip_type,
GimpProgress *progress);
void gimp_image_flip_full (GimpImage *image,
GimpContext *context,
GimpOrientationType flip_type,
gdouble axis,
gboolean clip_result,
GimpProgress *progress);
#endif /* __GIMP_IMAGE_FLIP_H__ */