2014-02-03 15:51:43 +01:00
|
|
|
/* draw.h
|
2009-11-03 22:27:56 +01:00
|
|
|
*
|
|
|
|
* 3/11/09
|
|
|
|
* - from proto.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
This file is part of VIPS.
|
|
|
|
|
|
|
|
VIPS is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Lesser 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 Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
2013-03-07 06:40:19 +01:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
02110-1301 USA
|
2009-11-03 22:27:56 +01:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2014-02-03 15:51:43 +01:00
|
|
|
#ifndef VIPS_DRAW_H
|
|
|
|
#define VIPS_DRAW_H
|
2009-11-03 22:27:56 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /*__cplusplus*/
|
|
|
|
|
2014-03-27 16:00:29 +01:00
|
|
|
typedef enum {
|
|
|
|
VIPS_COMBINE_MODE_SET,
|
|
|
|
VIPS_COMBINE_MODE_ADD,
|
|
|
|
VIPS_COMBINE_MODE_LAST
|
|
|
|
} VipsCombineMode;
|
|
|
|
|
2014-02-10 12:59:05 +01:00
|
|
|
int vips_draw_rect( VipsImage *image,
|
2014-02-10 12:07:00 +01:00
|
|
|
double *ink, int n, int left, int top, int width, int height, ... )
|
|
|
|
__attribute__((sentinel));
|
2014-02-10 12:59:05 +01:00
|
|
|
int vips_draw_rect1( VipsImage *image,
|
2014-02-10 12:07:00 +01:00
|
|
|
double ink, int left, int top, int width, int height, ... )
|
|
|
|
__attribute__((sentinel));
|
2014-02-10 14:00:04 +01:00
|
|
|
int vips_draw_point( VipsImage *image, double *ink, int n, int x, int y, ... )
|
|
|
|
__attribute__((sentinel));
|
|
|
|
int vips_draw_point1( VipsImage *image, double ink, int x, int y, ... )
|
|
|
|
__attribute__((sentinel));
|
2014-02-10 12:07:00 +01:00
|
|
|
|
2014-02-10 12:59:05 +01:00
|
|
|
int vips_draw_image( VipsImage *image, VipsImage *sub, int x, int y, ... )
|
2014-02-10 12:07:00 +01:00
|
|
|
__attribute__((sentinel));
|
|
|
|
|
2014-02-10 12:59:05 +01:00
|
|
|
int vips_draw_mask( VipsImage *image,
|
2014-02-07 15:59:18 +01:00
|
|
|
double *ink, int n, VipsImage *mask, int x, int y, ... )
|
|
|
|
__attribute__((sentinel));
|
2014-02-10 12:59:05 +01:00
|
|
|
int vips_draw_mask1( VipsImage *image,
|
2014-02-07 15:59:18 +01:00
|
|
|
double ink, VipsImage *mask, int x, int y, ... )
|
|
|
|
__attribute__((sentinel));
|
|
|
|
|
2014-02-10 12:59:05 +01:00
|
|
|
int vips_draw_line( VipsImage *image,
|
2014-02-06 15:46:45 +01:00
|
|
|
double *ink, int n, int x1, int y1, int x2, int y2, ... )
|
|
|
|
__attribute__((sentinel));
|
2014-02-10 12:59:05 +01:00
|
|
|
int vips_draw_line1( VipsImage *image,
|
2014-02-06 15:46:45 +01:00
|
|
|
double ink, int x1, int y1, int x2, int y2, ... )
|
|
|
|
__attribute__((sentinel));
|
|
|
|
|
2014-02-10 12:59:05 +01:00
|
|
|
int vips_draw_circle( VipsImage *image,
|
2014-02-04 09:49:17 +01:00
|
|
|
double *ink, int n, int cx, int cy, int radius, ... )
|
|
|
|
__attribute__((sentinel));
|
2014-02-10 12:59:05 +01:00
|
|
|
int vips_draw_circle1( VipsImage *image,
|
2014-02-04 09:49:17 +01:00
|
|
|
double ink, int cx, int cy, int radius, ... )
|
|
|
|
__attribute__((sentinel));
|
|
|
|
|
2014-02-10 12:59:05 +01:00
|
|
|
int vips_draw_flood( VipsImage *image, double *ink, int n, int x, int y, ... )
|
2014-02-04 15:55:37 +01:00
|
|
|
__attribute__((sentinel));
|
2014-02-10 12:59:05 +01:00
|
|
|
int vips_draw_flood1( VipsImage *image, double ink, int x, int y, ... )
|
2014-02-04 17:40:38 +01:00
|
|
|
__attribute__((sentinel));
|
2014-02-04 15:55:37 +01:00
|
|
|
|
2014-02-11 14:28:13 +01:00
|
|
|
int vips_draw_smudge( VipsImage *image,
|
|
|
|
int left, int top, int width, int height, ... )
|
|
|
|
__attribute__((sentinel));
|
2009-11-03 22:27:56 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /*__cplusplus*/
|
|
|
|
|
2014-02-03 15:51:43 +01:00
|
|
|
#endif /*VIPS_DRAW_H*/
|