draw

draw

Synopsis

void                ucil_convert_color                  (ucil_color_t *src,
                                                         ucil_color_t *dest);
void                ucil_draw_box                       (unicap_data_buffer_t *data_buffer,
                                                         ucil_color_t *color,
                                                         int x1,
                                                         int y1,
                                                         int x2,
                                                         int y2);
void                ucil_draw_line                      (unicap_data_buffer_t *data_buffer,
                                                         ucil_color_t *color,
                                                         int x1,
                                                         int y1,
                                                         int x2,
                                                         int y2);
void                ucil_draw_rect                      (unicap_data_buffer_t *data_buffer,
                                                         ucil_color_t *color,
                                                         int x1,
                                                         int y1,
                                                         int x2,
                                                         int y2);
void                ucil_fill                           (unicap_data_buffer_t *data_buffer,
                                                         ucil_color_t *color);
void                ucil_set_pixel                      (unicap_data_buffer_t *data_buffer,
                                                         ucil_color_t *color,
                                                         int x,
                                                         int y);

Description

Details

ucil_convert_color ()

void                ucil_convert_color                  (ucil_color_t *src,
                                                         ucil_color_t *dest);

Convert colors between colorspaces. The colorspace field of dest needs to be set to the target colorspace, like in this example:

1
2
3
4
5
6
7
8
9