Module blending

Source
Expand description

Blending algorithms and associated utility functions and enums.

Modules§

algorithms
Low-level implementation of the blending algorithms.
params
Blend algorithms and PConvert API optional parameter types (BlendAlgorithmParams and Options, respectively). Low level layer for the composition system.

Enums§

BlendAlgorithm
Enumeration of supported blending modes.

Functions§

blend_images
Blends two images buffers with the given blending function and optional parameters.
demultiply_image
Demultiplies an image buffer, by applying the demultiply operation over the complete set of pixels in the provided image buffer.
get_blending_algorithm
Matches a BlendAlgorithm enum variant with a blend function.
is_algorithm_multiplied
Returns whether or not a BlendAlgorithm enum variant corresponds to a multiplied blending algorithm.
multiply_image
Multiplies an image buffer, running the opposite operation over the complete set of pixels in the image buffer.