On Sat, Oct 02, 2004 at 07:20:03PM -0400, Thierry Pierron wrote:
> Hello,
>
> Can someone explain basic steps to get bitmap of the selection mask of gimp
> inside a plugin ?
>
> I try to play with gimp_image_get_selection(), passing the current image ID,
> but it always returns -1.
>
> Any example available somewhere ?
>
Have a look at libgimp/gimpdrawablepreview.c, in current CVS, in the
function gimp_drawable_preview_draw_area (). This function use the
selection and put it into an array of guchar. Examine how the sel
variable is filled.
Regards,
DindinX
--
[EMAIL PROTECTED]
Everyone has a scheme for getting rich that will not work
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer