Nana C++ Library  

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

Description

The interface of line algorithm.

Model of

None

Public base classes

None

Members

virtual ~line_interface() = 0; The destruction interface
virtual void process(nana::paint::pixel_buffer & pixbuf, const nana::point& pos_beg, const nana::point& pos_end, nana::color_t color, double fade_rate) const = 0; Draws a line, the range of line is [pos_beg, pos_end].
If fade_rate is not 0, the line is blended to the pixbuf, value of fade_rate is in the range of [0, 1].

File

nana/paint/image_process_interface.hpp

Notes

1, The two points are calculated by Nana, they are always valid, and pos_beg.x <= pos_end.x

2, The semantics of the algorithm is:
   Draws line [pos_beg, pos_end]
   pixbuf = pixbuf * (1 - fade_rate) + color * fade_rate

See also

None.


Move to The Nana Programmer's Guide Main Page