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);
|