Re: [Gimp-developer] Adding feature - user defined layer combination

2003-06-03 Thread Øyvind Kolås
* Steinar H. Gunderson <[EMAIL PROTECTED]> [030603 14:21]:
> Just a question: If one is to move to floating point layers (ie. GIMP 2.0),
> how would XOR work between two such layers?

In a system supporting both floating point and integer fata types for
the image samples, some operations are natural to restrict. XOR would
perhaps be restricted to 16bpc and 8bpc, the neccesary conversion would
have to be done for the input/output of the filter.

In the same manner it is common to merge brightness/contrast/color
adjustments into a series of operations on floating point values, even
when the working space is 8bit or 16bit.

/pippin

-- 
  .^.
  /V\Øyvind Kolås,  Gjøvik University College, Norway 
 /(_)\   <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
  ^ ^
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Adding feature - user defined layer combination

2003-06-03 Thread Steinar H. Gunderson
On Tue, Jun 03, 2003 at 12:52:39AM +0200, Sven Neumann wrote:
> First of all, we are of course interested in your patch that
> implements XOR as a new layer mode.

Just a question: If one is to move to floating point layers (ie. GIMP 2.0),
how would XOR work between two such layers?

/* Steinar */
-- 
Homepage: http://www.sesse.net/

___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


[Gimp-developer] Adding feature - user defined layer combination

2003-06-02 Thread Joao S. O. Bueno

Hi again!

I wrote yesterday that I was writting a XOR layer combine mode.


Well, today it just working fine.
While it does have it's interesting applications, I think that including it 
as a default layer combine/paint mode would bloat the User Interface,
as undoubtley, there are lots of other creative specific layer combination 
effects that could be written.

On the other hand, adding a new layer combine/paint mode gives possibilities 
to the final user that are not, afaik, feasible with ordinary pos-compile 
plugins, as with new layer modes there comes completely new brushes and 
effects.

So, it ocurred to me that with something more elaborated than what  I did, 
there could be implemented a "custom layer combine" mode.
Them, one "custom" option would be added in the layer mode/paint options,a nd 
the actual pixel operations for this would be defined in a dialog box 
somewhere else, maybe even as a plugin.

Therefore, one could, for instance,ina  single work use a "combine 50% blue as 
green" mode, and on his next image, the artist could make an "add red to 
alpha" combine mode. The differene is that the option is up to the user, and 
there will be no need for him to patch the Gimp to get the desired effects.


So, I would like to know if you think this could be an itneresting feature. 
What could and could not be done here. If we get to an interesting final idea 
here, I think I can write, with ocasional questions to you, the necessary 
code to make it work.

Thank you for the support,

JS
-><-


___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer