You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

116 lines
4.1 KiB

  1. /* GDK - The GIMP Drawing Kit
  2. * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the
  16. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17. * Boston, MA 02111-1307, USA.
  18. */
  19. /*
  20. * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
  21. * file for a list of people on the GTK+ Team. See the ChangeLog
  22. * files for a list of changes. These files are distributed with
  23. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  24. */
  25. #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
  26. #error "Only <gdk/gdk.h> can be included directly."
  27. #endif
  28. #ifndef __GDK_PIXBUF_H__
  29. #define __GDK_PIXBUF_H__
  30. #include <cairo.h>
  31. #include <gdk/gdktypes.h>
  32. #include <gdk/gdkrgb.h>
  33. #include <gdk-pixbuf/gdk-pixbuf.h>
  34. G_BEGIN_DECLS
  35. /* Rendering to a drawable */
  36. void gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf,
  37. GdkBitmap *bitmap,
  38. int src_x,
  39. int src_y,
  40. int dest_x,
  41. int dest_y,
  42. int width,
  43. int height,
  44. int alpha_threshold);
  45. #ifndef GDK_DISABLE_DEPRECATED
  46. void gdk_pixbuf_render_to_drawable (GdkPixbuf *pixbuf,
  47. GdkDrawable *drawable,
  48. GdkGC *gc,
  49. int src_x,
  50. int src_y,
  51. int dest_x,
  52. int dest_y,
  53. int width,
  54. int height,
  55. GdkRgbDither dither,
  56. int x_dither,
  57. int y_dither);
  58. void gdk_pixbuf_render_to_drawable_alpha (GdkPixbuf *pixbuf,
  59. GdkDrawable *drawable,
  60. int src_x,
  61. int src_y,
  62. int dest_x,
  63. int dest_y,
  64. int width,
  65. int height,
  66. GdkPixbufAlphaMode alpha_mode,
  67. int alpha_threshold,
  68. GdkRgbDither dither,
  69. int x_dither,
  70. int y_dither);
  71. #endif /* GDK_DISABLE_DEPRECATED */
  72. void gdk_pixbuf_render_pixmap_and_mask_for_colormap (GdkPixbuf *pixbuf,
  73. GdkColormap *colormap,
  74. GdkPixmap **pixmap_return,
  75. GdkBitmap **mask_return,
  76. int alpha_threshold);
  77. #ifndef GDK_MULTIHEAD_SAFE
  78. void gdk_pixbuf_render_pixmap_and_mask (GdkPixbuf *pixbuf,
  79. GdkPixmap **pixmap_return,
  80. GdkBitmap **mask_return,
  81. int alpha_threshold);
  82. #endif
  83. /* Fetching a region from a drawable */
  84. GdkPixbuf *gdk_pixbuf_get_from_drawable (GdkPixbuf *dest,
  85. GdkDrawable *src,
  86. GdkColormap *cmap,
  87. int src_x,
  88. int src_y,
  89. int dest_x,
  90. int dest_y,
  91. int width,
  92. int height);
  93. GdkPixbuf *gdk_pixbuf_get_from_image (GdkPixbuf *dest,
  94. GdkImage *src,
  95. GdkColormap *cmap,
  96. int src_x,
  97. int src_y,
  98. int dest_x,
  99. int dest_y,
  100. int width,
  101. int height);
  102. G_END_DECLS
  103. #endif /* __GDK_PIXBUF_H__ */