curves tool how to set an other grid
Message-ID:<4b070fe7$0$903$ba4acef3@news.orange.fr>
Subject:
curves tool : how to set an other grid ?
Date:Fri, 20 Nov 2009 22:53:43 +0100
Hello all Wilber friends, In gimp 2.4, the curves tool grid looks like this : --------- | | | |/| --------- | | |/| | --------- | |/| | | --------- |/| | | | --------- (There are 5 levels, so 4 spaces horizontally and vertically between 0 and 255.) In gimp 2.6 there are 9 levels, so 8 spaces horizontally and vertically between 0 and 255. Is it possible to set a grid with 5x5 spaces ? This would be more convenient for me when I work on 16 tones grey pictures. (Because 16 levels define 15 color spaces.) Perhaps an option to set in ~/.gimp-2.4/tool-options/gimp-curves-tool ?
Message-ID:<4b2d0a41$0$937$ba4acef3@news.orange.fr>
Subject:
Re: curves tool : how to set an other grid ?
Date:Sat, 19 Dec 2009 18:15:45 +0100
On 11.20.2009 22:53, I wrote:
> Hello all Wilber friends,
>
> In gimp 2.4, the curves tool grid looks like this :
>
> ---------
> | | | |/|
> ---------
> | | |/| |
> ---------
> | |/| | |
> ---------
> |/| | | |
> ---------
>
> (There are 5 levels, so 4 spaces horizontally and vertically between 0 and 255.)
>
> In gimp 2.6 there are 9 levels, so 8 spaces horizontally and vertically
> between 0 and 255.
>
> Is it possible to set a grid with 5x5 spaces ? This would be more convenient
> for me when I work on 16 tones grey pictures. (Because 16 levels define 15
> color spaces.)
>
> Perhaps an option to set in ~/.gimp-2.4/tool-options/gimp-curves-tool ?
This is my solution:
1) In gimp-2.4.7 source files, I modified gimpcurvestool.c like this:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/* Draw the grid lines */
for (i = 1; i < 5; i++)
{
gdk_draw_line (widget->window,
tool->graph->style->dark_gc[GTK_STATE_NORMAL],
RADIUS,
RADIUS + i * (height / 5),
RADIUS + width - 1,
RADIUS + i * (height / 5));
gdk_draw_line (widget->window,
tool->graph->style->dark_gc[GTK_STATE_NORMAL],
RADIUS + i * (width / 5),
RADIUS,
RADIUS + i * (width / 5),
RADIUS + height - 1);
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
(All I did whas to replace all "4" with "5".)
2) Compile Gimp-2.4.7 and install it.
Isn't my grid beautiful ? ;-)
http://www.cijoint.fr/cjlink.php?file=cj200912/cijRQXNokg.png



RSS News Feed