2007-06-06 16:44:52 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
1999-08-13 01:53:51 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2011-04-09 03:18:39 +08:00
|
|
|
* gimpbrush-transform.h
|
2007-04-01 21:38:22 +08:00
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
1999-08-13 01:53:51 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
1999-08-13 01:53:51 +08:00
|
|
|
* (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
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
1999-08-13 01:53:51 +08:00
|
|
|
*/
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2012-02-13 01:41:52 +08:00
|
|
|
#ifndef __GIMP_BRUSH_TRANSFORM_H__
|
|
|
|
#define __GIMP_BRUSH_TRANSFORM_H__
|
2007-04-01 21:38:22 +08:00
|
|
|
|
1999-08-13 01:53:51 +08:00
|
|
|
|
2007-04-01 21:38:22 +08:00
|
|
|
/* virtual functions of GimpBrush, don't call directly */
|
1999-08-13 01:53:51 +08:00
|
|
|
|
2012-04-09 02:25:49 +08:00
|
|
|
void gimp_brush_real_transform_size (GimpBrush *brush,
|
|
|
|
gdouble scale,
|
|
|
|
gdouble aspect_ratio,
|
|
|
|
gdouble angle,
|
2017-12-23 05:53:56 +08:00
|
|
|
gboolean reflect,
|
2012-04-09 02:25:49 +08:00
|
|
|
gint *scaled_width,
|
|
|
|
gint *scaled_height);
|
|
|
|
GimpTempBuf * gimp_brush_real_transform_mask (GimpBrush *brush,
|
|
|
|
gdouble scale,
|
|
|
|
gdouble aspect_ratio,
|
|
|
|
gdouble angle,
|
2017-12-23 05:53:56 +08:00
|
|
|
gboolean reflect,
|
2012-04-09 02:25:49 +08:00
|
|
|
gdouble hardness);
|
|
|
|
GimpTempBuf * gimp_brush_real_transform_pixmap (GimpBrush *brush,
|
|
|
|
gdouble scale,
|
|
|
|
gdouble aspect_ratio,
|
|
|
|
gdouble angle,
|
2017-12-23 05:53:56 +08:00
|
|
|
gboolean reflect,
|
2012-04-09 02:25:49 +08:00
|
|
|
gdouble hardness);
|
1999-08-13 01:53:51 +08:00
|
|
|
|
2012-04-09 02:25:49 +08:00
|
|
|
void gimp_brush_transform_matrix (gdouble width,
|
|
|
|
gdouble height,
|
|
|
|
gdouble scale,
|
|
|
|
gdouble aspect_ratio,
|
|
|
|
gdouble angle,
|
2017-12-23 05:53:56 +08:00
|
|
|
gboolean reflect,
|
2012-04-09 02:25:49 +08:00
|
|
|
GimpMatrix3 *matrix);
|
2010-03-18 01:48:12 +08:00
|
|
|
|
1999-08-13 01:53:51 +08:00
|
|
|
|
2012-02-13 01:41:52 +08:00
|
|
|
#endif /* __GIMP_BRUSH_TRANSFORM_H__ */
|