您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

120 行
3.8 KiB

  1. /* GdkPixbuf library - transformations
  2. *
  3. * Copyright (C) 2003 The Free Software Foundation
  4. *
  5. * Authors: Mark Crichton <crichton@gimp.org>
  6. * Miguel de Icaza <miguel@gnu.org>
  7. * Federico Mena-Quintero <federico@gimp.org>
  8. * Havoc Pennington <hp@redhat.com>
  9. *
  10. * This library is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU Lesser General Public
  12. * License as published by the Free Software Foundation; either
  13. * version 2 of the License, or (at your option) any later version.
  14. *
  15. * This library is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. * Lesser General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Lesser General Public
  21. * License along with this library; if not, write to the
  22. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  23. * Boston, MA 02111-1307, USA.
  24. */
  25. #if defined(GDK_PIXBUF_DISABLE_SINGLE_INCLUDES) && !defined (GDK_PIXBUF_H_INSIDE) && !defined (GDK_PIXBUF_COMPILATION)
  26. #error "Only <gdk-pixbuf/gdk-pixbuf.h> can be included directly."
  27. #endif
  28. #ifndef GDK_PIXBUF_TRANSFORM_H
  29. #define GDK_PIXBUF_TRANSFORM_H
  30. #include <glib.h>
  31. #include <gdk-pixbuf/gdk-pixbuf-core.h>
  32. G_BEGIN_DECLS
  33. /* Scaling */
  34. /* Interpolation modes */
  35. typedef enum {
  36. GDK_INTERP_NEAREST,
  37. GDK_INTERP_TILES,
  38. GDK_INTERP_BILINEAR,
  39. GDK_INTERP_HYPER
  40. } GdkInterpType;
  41. typedef enum {
  42. GDK_PIXBUF_ROTATE_NONE = 0,
  43. GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE = 90,
  44. GDK_PIXBUF_ROTATE_UPSIDEDOWN = 180,
  45. GDK_PIXBUF_ROTATE_CLOCKWISE = 270
  46. } GdkPixbufRotation;
  47. void gdk_pixbuf_scale (const GdkPixbuf *src,
  48. GdkPixbuf *dest,
  49. int dest_x,
  50. int dest_y,
  51. int dest_width,
  52. int dest_height,
  53. double offset_x,
  54. double offset_y,
  55. double scale_x,
  56. double scale_y,
  57. GdkInterpType interp_type);
  58. void gdk_pixbuf_composite (const GdkPixbuf *src,
  59. GdkPixbuf *dest,
  60. int dest_x,
  61. int dest_y,
  62. int dest_width,
  63. int dest_height,
  64. double offset_x,
  65. double offset_y,
  66. double scale_x,
  67. double scale_y,
  68. GdkInterpType interp_type,
  69. int overall_alpha);
  70. void gdk_pixbuf_composite_color (const GdkPixbuf *src,
  71. GdkPixbuf *dest,
  72. int dest_x,
  73. int dest_y,
  74. int dest_width,
  75. int dest_height,
  76. double offset_x,
  77. double offset_y,
  78. double scale_x,
  79. double scale_y,
  80. GdkInterpType interp_type,
  81. int overall_alpha,
  82. int check_x,
  83. int check_y,
  84. int check_size,
  85. guint32 color1,
  86. guint32 color2);
  87. GdkPixbuf *gdk_pixbuf_scale_simple (const GdkPixbuf *src,
  88. int dest_width,
  89. int dest_height,
  90. GdkInterpType interp_type);
  91. GdkPixbuf *gdk_pixbuf_composite_color_simple (const GdkPixbuf *src,
  92. int dest_width,
  93. int dest_height,
  94. GdkInterpType interp_type,
  95. int overall_alpha,
  96. int check_size,
  97. guint32 color1,
  98. guint32 color2);
  99. GdkPixbuf *gdk_pixbuf_rotate_simple (const GdkPixbuf *src,
  100. GdkPixbufRotation angle);
  101. GdkPixbuf *gdk_pixbuf_flip (const GdkPixbuf *src,
  102. gboolean horizontal);
  103. G_END_DECLS
  104. #endif /* GDK_PIXBUF_TRANSFORM_H */