Re: [Gimp-developer] Looking for guidance on implementing a plugin

2010-05-29 Thread saulgoode
Quoting Rob Antonishen : > On a side note, what are tattoos good for? Are they used for > anything, anywhere? Layer tattoos are useful when a reference to a layer needs to be maintained across GIMP sessions, subsequent open-ings of the same image within the same session, or even when using "

Re: [Gimp-developer] Looking for guidance on implementing a plugin

2010-05-29 Thread Rob Antonishen
>>  Layer->Scale Layer which scales the active layer only but does not >> change the image canvas size or scale the associated layer mask (is >> that a reasonable behavior?). > > "Layer->Scale Layer" (in the Menus) indeed scales the associated > layermask. Currently, I believe all PDB layer transfo

Re: [Gimp-developer] Looking for guidance on implementing a plugin

2010-05-28 Thread saulgoode
Quoting Rob Antonishen : > I am writing a c plugin to scale a layer. (This is much as an > exercise for me as anything). > > I have looked at a few examples and they handle things differently > > - Create a new image with a new layer the new size The only reason I can conceive why this might

Re: [Gimp-developer] Looking for guidance on implementing a plugin

2010-05-28 Thread Bill Skaggs
On the whole it's probably better to use the existing layer, because that way you automatically keep its properties such as transparency, mode, etc. If you create a new layer, you will have to set all those things by hand. In terms of computational load it probably doesn't make much difference --

Re: [Gimp-developer] Looking for guidance on implementing a plugin

2010-05-28 Thread Burnie West
On 05/28/2010 08:03 AM, Rob Antonishen wrote: >> Maybe the code for >> >> http://registry.gimp.org/node/19582 >> >> is useful? >> >> Nicolas Robidoux >> > I looked at that one and they simply create a new image with a scaled > version of the active layer, which is sub-optimal from a UI > pers

Re: [Gimp-developer] Looking for guidance on implementing a plugin

2010-05-28 Thread Rob Antonishen
> Maybe the code for > > http://registry.gimp.org/node/19582 > > is useful? > > Nicolas Robidoux I looked at that one and they simply create a new image with a scaled version of the active layer, which is sub-optimal from a UI perspective (the plugin registers under the Image menu, but only scales

[Gimp-developer] Looking for guidance on implementing a plugin

2010-05-27 Thread Rob Antonishen
Hi- I am writing a c plugin to scale a layer. (This is much as an exercise for me as anything). I have looked at a few examples and they handle things differently - Create a new image with a new layer the new size - Create a new layer in the existing image just above the input layer - Creat