Nana C++ Library  

An open-source C++ framework project
The Programmer's Guide 
nana::paint::image_process::blend_interface

Description

The interface of blend algorithm.

Model of

None

Public base classes

None

Members

virtual ~blend_interface() = 0; The destruction interface
virtual void process(const pixel_buffer & s_pixbuf, const nana::rectangle& s_r, pixel_buffer& d_pixbuf, const nana::point& d_pos, double fade_rate) const = 0; Blends two images with specified area. fade_rate is the blend rate in the range of [0, 1]

File

nana/paint/image_process_interface.hpp

Notes

1, The semantics of the algorithm is:
   d_pixbuf = d_pixbuf * fade_rate + s_pixbuf * (1 - fade_rate);

2, The area is always valid, it is calculated by Nana before passing to the algorithm. So the area could be applied without a check.

See also

None.


Move to The Nana Programmer's Guide Main Page