| 130 | } |
| 131 | |
| 132 | image get_label(image **characters, char *string, int size) |
| 133 | { |
| 134 | if(size > 7) size = 7; |
| 135 | image label = make_empty_image(0,0,0); |
| 136 | while(*string){ |
| 137 | image l = characters[size][(int)*string]; |
| 138 | image n = tile_images(label, l, -size - 1 + (size+1)/2); |
| 139 | free_image(label); |
| 140 | label = n; |
| 141 | ++string; |
| 142 | } |
| 143 | image b = border_image(label, label.h*.25); |
| 144 | free_image(label); |
| 145 | return b; |
| 146 | } |
| 147 | |
| 148 | void draw_label(image a, int r, int c, image label, const float *rgb) |
| 149 | { |
no test coverage detected