Hello, I'm working on this plugin:
after few operations, it picks a color from the image (with che function
gimp_pixel_rgn_get_pixel) to get the guchar value of the components of the
related color.
At this point, I need to call the gimp_by_color_select procedure but I'm not
sure to follow the
Hello, I'm working on this plugin:after few operations, it picks a color from
the image (with che function gimp_pixel_rgn_get_pixel) to get the guchar value
of the components of the related color.At this point, I need to call the
gimp_by_color_select procedure but I'm not sure to follow the
Thanks for your help... I have another question: how can I convert a guchar
value taken by gimp_pixel_rgn_get_pixel to COLOR?
Date: Tue, 16 Oct 2007 17:02:15 +0300 From: [EMAIL PROTECTED] To: [EMAIL
PROTECTED] Subject: Re: [Gimp-developer] calling a procedure in a plugin
CC:
Thanks to all for the useful help... I'll write this function but it return a
fatal error (SEGMENTATION FAULT) and it don't make the selection...
Here is the code:
static void evidenzia (GimpDrawable *drawable, GimpPreview *preview){
gint width, height; //dell'immagine su cui va
Ok, I'll modify the plugin in this way:
static void evidenzia (GimpDrawable *drawable,
GimpPreview *preview)
{
gint width, height; //dell'immagine su cui va applicato il plugin
gint altezza, larghezza; //numero di pixel formanti la palette
gint x1,
Because I have problem converting the guchar vector for the color in GimpRGB
and I don't know how manage with GimpChannelOps...
Can you write me down an example?
Subject: RE: RE: [Gimp-developer]
calling a procedure in a plugin From: [EMAIL PROTECTED]
Thanks to all... Now it's work...
You are attempting to modify a color at some random memory location, that's
never been allocated (you didn't initialize colore) and then you passed
this dodgy pointer to gimp_by_color_select. In most parts of the GIMP,
GimpRGB are statically allocated,
I have modified the code as you suggested:
GimpRGB *colore;
GimpChannelOps parametri;
gboolean success;
gimp_rgb_set_uchar(colore, pixel[0], pixel[1], pixel[2]);
parametri = GIMP_CHANNEL_OP_REPLACE;
success =
in gimp.h.
But this is impossible...
I cannot access to microsoft's developer studio but I've already used it.
So it is possible to use microsoft visual c++? How?
Giuseppe
- Original Message -
From: Tor Lillqvist [EMAIL PROTECTED]
To: Giuseppe Pasquino [EMAIL PROTECTED]
Cc: gimp-developer