| 395 | } |
| 396 | |
| 397 | void embed_image(image source, image dest, int dx, int dy) |
| 398 | { |
| 399 | int x,y,k; |
| 400 | for(k = 0; k < source.c; ++k){ |
| 401 | for(y = 0; y < source.h; ++y){ |
| 402 | for(x = 0; x < source.w; ++x){ |
| 403 | float val = get_pixel(source, x,y,k); |
| 404 | set_pixel(dest, dx+x, dy+y, k, val); |
| 405 | } |
| 406 | } |
| 407 | } |
| 408 | } |
| 409 | |
| 410 | image collapse_image_layers(image source, int border) |
| 411 | { |
no test coverage detected