Re: [Gimp-developer] Getting selection mask

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
david@xxxxxxxxxxx
Everyone has a scheme for getting rich that will not work

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux