template<typename T>
spice::blend_function::overlay class

Overlay the foreground over the background.

Template parameters
T

Constructors, destructors, conversion operators

overlay(int alpha_channel_index = NO_ALPHA)
Construct a new overlay object.

Public functions

auto operator()(pixel_view<T> const& bg, pixel_view<T> const& fg) -> color<T>
Blend the foreground and the background.

Function documentation

template<typenameT>
spice::blend_function::overlay<T>::overlay(int alpha_channel_index = NO_ALPHA)

Construct a new overlay object.

Parameters
alpha_channel_index the index of the alpha channel or NO_ALPHA.

template<typenameT>
color<T> spice::blend_function::overlay<T>::operator()(pixel_view<T> const& bg, pixel_view<T> const& fg)

Blend the foreground and the background.

Parameters
bg
fg
Returns color<T>