GIMP Library Reference Manual | ||||
---|---|---|---|---|
Top | Description |
GimpRgnIterator; void (*GimpRgnFunc1) (const guchar *src
,gint bpp
,gpointer data
); void (*GimpRgnFunc2) (const guchar *src
,guchar *dest
,gint bpp
,gpointer data
); void (*GimpRgnFuncSrc) (gint x
,gint y
,const guchar *src
,gint bpp
,gpointer data
); void (*GimpRgnFuncDest) (gint x
,gint y
,guchar *dest
,gint bpp
,gpointer data
); void (*GimpRgnFuncSrcDest) (gint x
,gint y
,const guchar *src
,guchar *dest
,gint bpp
,gpointer data
); GimpRgnIterator * gimp_rgn_iterator_new (GimpDrawable *drawable
,GimpRunMode unused
); void gimp_rgn_iterator_free (GimpRgnIterator *iter
); void gimp_rgn_iterator_src (GimpRgnIterator *iter
,GimpRgnFuncSrc func
,gpointer data
); void gimp_rgn_iterator_dest (GimpRgnIterator *iter
,GimpRgnFuncDest func
,gpointer data
); void gimp_rgn_iterator_src_dest (GimpRgnIterator *iter
,GimpRgnFuncSrcDest func
,gpointer data
); void gimp_rgn_iterate1 (GimpDrawable *drawable
,GimpRunMode unused
,GimpRgnFunc1 func
,gpointer data
); void gimp_rgn_iterate2 (GimpDrawable *drawable
,GimpRunMode unused
,GimpRgnFunc2 func
,gpointer data
);
The GimpRgnIterator functions provide a variety of common ways to traverse a PixelRegion, using a pre-defined function pointer per pixel.
void (*GimpRgnFuncSrc) (gint x
,gint y
,const guchar *src
,gint bpp
,gpointer data
);
void (*GimpRgnFuncSrcDest) (gint x
,gint y
,const guchar *src
,guchar *dest
,gint bpp
,gpointer data
);
GimpRgnIterator * gimp_rgn_iterator_new (GimpDrawable *drawable
,GimpRunMode unused
);
Creates a new GimpRgnIterator for drawable
. The GimpRunMode
parameter is ignored. Use gimp_rgn_iterator_free()
to free thsi
iterator.
|
a GimpDrawable |
|
ignored |
Returns : |
a newly allocated GimpRgnIterator. |
void gimp_rgn_iterator_free (GimpRgnIterator *iter
);
Frees the resources allocated for iter
.
|
a GimpRgnIterator |
void gimp_rgn_iterator_src (GimpRgnIterator *iter
,GimpRgnFuncSrc func
,gpointer data
);
void gimp_rgn_iterator_dest (GimpRgnIterator *iter
,GimpRgnFuncDest func
,gpointer data
);
void gimp_rgn_iterator_src_dest (GimpRgnIterator *iter
,GimpRgnFuncSrcDest func
,gpointer data
);
void gimp_rgn_iterate1 (GimpDrawable *drawable
,GimpRunMode unused
,GimpRgnFunc1 func
,gpointer data
);
void gimp_rgn_iterate2 (GimpDrawable *drawable
,GimpRunMode unused
,GimpRgnFunc2 func
,gpointer data
);