mapchete_eo.image_operations.blend_functions

Original LICENSE:

MIT License

Copyright (c) 2016 Florian Roscheck

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation th rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Functions

addition(fg, bg, opacity)

Apply addition blending mode of a layer on an image.

darken_only(fg, bg, opacity)

Apply darken only blending mode of a layer on an image.

difference(fg, bg, opacity)

Apply difference blending mode of a layer on an image.

divide(fg, bg, opacity)

Apply divide blending mode of a layer on an image.

dodge(fg, bg, opacity)

Apply dodge blending mode of a layer on an image.

grain_extract(fg, bg, opacity)

Apply grain extract blending mode of a layer on an image.

grain_merge(fg, bg, opacity)

Apply grain merge blending mode of a layer on an image.

hard_light(fg, bg, opacity)

Apply hard light blending mode of a layer on an image.

lighten_only(fg, bg, opacity)

Apply lighten only blending mode of a layer on an image.

multiply(fg, bg, opacity)

Apply multiply blending mode of a layer on an image.

normal(fg, bg, opacity)

Apply "normal" blending mode of a layer on an image.

overlay(fg, bg, opacity)

Apply overlay blending mode of a layer on an image.

screen(fg, bg, opacity)

Apply screen blending mode of a layer on an image.

soft_light(fg, bg, opacity)

Apply soft light blending mode of a layer on an image.

subtract(fg, bg, opacity)

Apply subtract blending mode of a layer on an image.