[Gimp-developer] calling a procedure in a plugin

Sven Neumann sven at gimp.org
Thu Oct 18 06:13:11 PDT 2007


Hi,

On Thu, 2007-10-18 at 15:05 +0200, Giuseppe Pasquino wrote:
> Because I have problem converting the guchar vector for the color in
> "GimpRGB" and I don't know how manage with GimpChannelOps...

I think I already pointed you to the API reference for GimpRGB and
gimp_rgb_set_uchar() in particular. GimpChannelOps is an enum and the
possible values are listed in the API reference. Just follow the link.

You can also save yourself the hassle of working with pixel regions if
all you want to do is to get the color of a single pixel. There's 
gimp_drawable_get_pixel() for that purpose.


Sven




More information about the Gimp-developer mailing list