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
|
|
|
|
*
|
2007-04-01 21:38:22 +08:00
|
|
|
* gimpbrush-scale.h
|
|
|
|
*
|
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
|
|
|
|
2007-04-01 21:38:22 +08:00
|
|
|
#ifndef __GIMP_BRUSH_SCALE_H__
|
|
|
|
#define __GIMP_BRUSH_SCALE_H__
|
|
|
|
|
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
|
|
|
|
2009-02-01 19:08:22 +08:00
|
|
|
void gimp_brush_real_transform_size (GimpBrush *brush,
|
2009-04-26 01:53:09 +08:00
|
|
|
gdouble scale,
|
|
|
|
gdouble aspect_ratio,
|
2009-02-06 05:47:57 +08:00
|
|
|
gdouble angle,
|
2009-02-01 19:08:22 +08:00
|
|
|
gint *scaled_width,
|
|
|
|
gint *scaled_height);
|
|
|
|
TempBuf * gimp_brush_real_transform_mask (GimpBrush *brush,
|
2009-04-26 01:53:09 +08:00
|
|
|
gdouble scale,
|
|
|
|
gdouble aspect_ratio,
|
2010-01-01 21:41:07 +08:00
|
|
|
gdouble angle,
|
|
|
|
gdouble hardness);
|
2009-02-01 19:08:22 +08:00
|
|
|
TempBuf * gimp_brush_real_transform_pixmap (GimpBrush *brush,
|
2009-04-26 01:53:09 +08:00
|
|
|
gdouble scale,
|
|
|
|
gdouble aspect_ratio,
|
2010-01-01 21:41:07 +08:00
|
|
|
gdouble angle,
|
|
|
|
gdouble hardness);
|
1999-08-13 01:53:51 +08:00
|
|
|
|
2010-03-18 01:48:12 +08:00
|
|
|
void gimp_brush_transform_matrix (gdouble width,
|
|
|
|
gdouble height,
|
2010-05-10 05:11:07 +08:00
|
|
|
gdouble scale,
|
|
|
|
gdouble aspect_ratio,
|
2010-03-18 01:48:12 +08:00
|
|
|
gdouble angle,
|
|
|
|
GimpMatrix3 *matrix);
|
|
|
|
|
1999-08-13 01:53:51 +08:00
|
|
|
|
2007-04-01 21:38:22 +08:00
|
|
|
#endif /* __GIMP_BRUSH_SCALE_H__ */
|