draw.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /* draw.h
  2. *
  3. * 3/11/09
  4. * - from proto.h
  5. */
  6. /*
  7. This file is part of VIPS.
  8. VIPS is free software; you can redistribute it and/or modify
  9. it under the terms of the GNU Lesser General Public License as published by
  10. the Free Software Foundation; either version 2 of the License, or
  11. (at your option) any later version.
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. GNU Lesser General Public License for more details.
  16. You should have received a copy of the GNU Lesser General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  19. 02110-1301 USA
  20. */
  21. /*
  22. These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
  23. */
  24. #ifndef VIPS_DRAW_H
  25. #define VIPS_DRAW_H
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif /*__cplusplus*/
  29. typedef enum {
  30. VIPS_COMBINE_MODE_SET,
  31. VIPS_COMBINE_MODE_ADD,
  32. VIPS_COMBINE_MODE_LAST
  33. } VipsCombineMode;
  34. int vips_draw_rect( VipsImage *image,
  35. double *ink, int n, int left, int top, int width, int height, ... )
  36. __attribute__((sentinel));
  37. int vips_draw_rect1( VipsImage *image,
  38. double ink, int left, int top, int width, int height, ... )
  39. __attribute__((sentinel));
  40. int vips_draw_point( VipsImage *image, double *ink, int n, int x, int y, ... )
  41. __attribute__((sentinel));
  42. int vips_draw_point1( VipsImage *image, double ink, int x, int y, ... )
  43. __attribute__((sentinel));
  44. int vips_draw_image( VipsImage *image, VipsImage *sub, int x, int y, ... )
  45. __attribute__((sentinel));
  46. int vips_draw_mask( VipsImage *image,
  47. double *ink, int n, VipsImage *mask, int x, int y, ... )
  48. __attribute__((sentinel));
  49. int vips_draw_mask1( VipsImage *image,
  50. double ink, VipsImage *mask, int x, int y, ... )
  51. __attribute__((sentinel));
  52. int vips_draw_line( VipsImage *image,
  53. double *ink, int n, int x1, int y1, int x2, int y2, ... )
  54. __attribute__((sentinel));
  55. int vips_draw_line1( VipsImage *image,
  56. double ink, int x1, int y1, int x2, int y2, ... )
  57. __attribute__((sentinel));
  58. int vips_draw_circle( VipsImage *image,
  59. double *ink, int n, int cx, int cy, int radius, ... )
  60. __attribute__((sentinel));
  61. int vips_draw_circle1( VipsImage *image,
  62. double ink, int cx, int cy, int radius, ... )
  63. __attribute__((sentinel));
  64. int vips_draw_flood( VipsImage *image, double *ink, int n, int x, int y, ... )
  65. __attribute__((sentinel));
  66. int vips_draw_flood1( VipsImage *image, double ink, int x, int y, ... )
  67. __attribute__((sentinel));
  68. int vips_draw_smudge( VipsImage *image,
  69. int left, int top, int width, int height, ... )
  70. __attribute__((sentinel));
  71. #ifdef __cplusplus
  72. }
  73. #endif /*__cplusplus*/
  74. #endif /*VIPS_DRAW_H*/