RSS/Atom feed Twitter
Site is read-only, email is disabled

layer modes - open questions

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

layer modes - open questions Rupert Weber 15 Aug 21:16
  layer modes - open questions David Gowers 16 Aug 02:33
Rupert Weber
2010-08-15 21:16:11 UTC (over 14 years ago)

layer modes - open questions

There are still some issues that I either blissfully ignored or took the least-cost route on:

(1) enums and gimp-composite While the values of legacy layer mode enums are preserved, gimp-composite.h has its own GIMP_COMPOSITE_* enums which append some modes to the layer mode list. (GIMP_COMPOSITE_BLEND, _SHADE, _SWAP,...).

Those additional enums have their values changed. Is that a problem? (I can't even find any place they are used)

(2) file import/export For import of psp, psd and xjt I simply assumed the new modes would be more appropriate than the old ones.
For exporting, I just mapped the new modes along with the old ones. But I don't know what would be correct for those file formats/programs.

(3) paint-funcs layer modes Is the layer mode code in app/paint-funcs ever used? If so, the code would have to be amended accordingly. Right now, I just mapped the new modes to the old functions.

I think that's about it.

Regards

Rupert

David Gowers
2010-08-16 02:33:42 UTC (over 14 years ago)

layer modes - open questions

On Mon, Aug 16, 2010 at 4:46 AM, Rupert Weber wrote:

There are still some issues that I either blissfully ignored or took the least-cost route on:

(3) paint-funcs layer modes
Is the layer mode code in app/paint-funcs ever used?

grepping the entire codebase only lists paint-funcs.c as a user of dissolve_pixels() and of layer_*_mode() [therefore *_pixels() are dependencies too]

AFAICS the code in paint_funcs.c which depends on the layer-modes.c code is used indirectly by:
* the merge-down code [app/core/gimpimage-merge.c] * the projection code [app/core/gimplayer-project.c] * the fade code [app/core/gimpdrawable-combine.c]