File: gdk-pixbuf-extra.h

package info (click to toggle)
xmorph 1%3A20060817
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,688 kB
  • ctags: 2,022
  • sloc: ansic: 19,988; sh: 9,418; cpp: 1,230; makefile: 560; sed: 16
file content (59 lines) | stat: -rw-r--r-- 1,215 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59



void 
gdk_pixbuf_clear(GdkPixbuf *pb);


/******** measures square distance between images ***
 * useful for matching subimages
*/


double long gdk_pixbuf_sqrdist(GdkPixbuf *p1,GdkPixbuf *p2);


/*************** gdk_pixbuf_is_subimage ()

 simple test: is one image contained in the other ? 
*/

gboolean
gdk_pixbuf_is_subimage (int src_x,
			int src_y,
			int width,
			int height,
			int dst_width,
			int dst_height
			);

/********************************************   gdk_pixbuf_subimage ()


     src_pixbuf :
                Source pixbuf.
          src_x :
                Source X coordinate within src_pixbuf.
          src_y :
                Source Y coordinate within src_pixbuf.
          width :
                Width of the area to copy.
         height :
                Height of the area to copy.
   

	returns : subimage pixbuf, or NULL if there is an error

   This function is similar to    gdk_pixbuf_copy_area()
   but it uses the same buffer as the buffer in    src_pixbuf

   for this reason, the subimage must be contained in the given image 
 */

GdkPixbuf*
gdk_pixbuf_subimage  (GdkPixbuf *src_pixbuf,
		      int src_x,
		      int src_y,
		      int width,
		      int height);