Paint - qPCR4vir/nana-docs GitHub Wiki

How do we paint in Nana? Paint is a namespace and this are related namespaces and classes:

Namespaces

detail:construction: | gadget:construction: | helper:construction: | image_process

Classes

graphics:construction: | fonts :construction: |Image :construction:

class   pixel_buffer 
class   image_accessor 
class   text_renderer 

See also: drawing :books:, Display & screen :construction: :books:

Functions:

pixel_color_t *  pixel_at (pixel_color_t *p, std::size_t bytes) 

Seek a pixel address by using offset bytes. More...

const pixel_color_t *  pixel_at (const pixel_color_t *p, std::size_t bytes) 
nana::rectangle  valid_rectangle (const nana::size &s, const nana::rectangle &r) 

Some explanations:

gadget

:construction:

void  close_16_pixels (::nana::paint::graphics &, int x, int y, unsigned style, const color &) 
void  cross (::nana::paint::graphics &, int x, int y, unsigned size, unsigned thickness, const nana::color &) 

helper

:construction:

struct   draw_string 
struct   draw_string_omitted 
struct   draw_string_auto_changing_lines 
struct   extent_auto_changing_lines 
template<typename F >  
void  for_each_line (const nana::char_t *str, std::size_t len, int top, F &f) 

detail

:construction:

Namespace algorithms

:construction:

Classes
class   image_process_provider 
struct   drawable_deleter 
struct   bitmap_file_header 
struct   bitmap_info_header 
struct   rgb_quad 
struct   bitmap_info 
class   image_bmp 
class   image_ico 
class   image_png 
Functions
nana::size  drawable_size (drawable_type dw) 
std::unique_ptr< unsigned char[]>  alloc_fade_table (double fade_rate) 
nana::pixel_color_t  fade_color_intermedia (nana::pixel_color_t fgcolor, const unsigned char *fade_table) 
nana::pixel_color_t  fade_color_by_intermedia (nana::pixel_color_t bgcolor, nana::pixel_color_t fgcolor_intermedia, const unsigned char *const fade_table) 
void  blend (drawable_type dw, const nana::rectangle &area, pixel_color_t color, double fade_rate) 
nana::size  raw_text_extent_size (drawable_type dw, const nana::char_t *text, std::size_t len) 
nana::size  text_extent_size (drawable_type dw, const nana::char_t *text, std::size_t len) 
void  draw_string (drawable_type dw, const nana::point &pos, const nana::char_t *str, std::size_t len) 
void  free_fade_table (const unsigned char *) 
nana::pixel_color_t  fade_color (nana::pixel_color_t bgcolor, nana::pixel_color_t fgcolor, const unsigned char *const fade_table) 
int  toupper (int c)