Menu

#30 Missing Screen composite operation

Unstable_(example)
closed-fixed
composite (2)
5
2014-06-22
2014-06-18
No

I've attached a patch implementing the missing Screen composite operation.

If I knew where all the hooks for the composite operations were, I would implement the rest of the missing PDF blend modes (Overlay, ColorDodge, ColorBurn, SoftLight, Exclusion).

1 Attachments

Discussion

  • Bob Friesenhahn

    Bob Friesenhahn - 2014-06-18

    The primary mechanism (besides the actual composition code) for adding a new composition operator is to add to the end of the CompositeOperator enumeration in image.h (if the enumeration name does not already exist), add another case to the switch statement in GetCompositionPixelIteratorCallback() in composite.c (as you did), and add more cases to CompositeOperatorToString() and StringToCompositeOperator() in enum_strings.c. Magick++ and PerlMagick need a few more edits to make new composition operators available. The PerlMagick test suite does test many of the composition operators so it could be extended to verify that the new composition operator produces consistent results.

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2014-06-22
    • status: open --> closed-fixed
    • assigned_to: Bob Friesenhahn
     
  • Bob Friesenhahn

    Bob Friesenhahn - 2014-06-22

    Your contribution is now available via Mercurial changeset 14085:dfce90af33f6. Thanks for the excellent work!

     

Log in to post a comment.