Syntax
void sod_embed_image(sod_img source, sod_img dest, int dx, int dy);
Description
Embed one image on top of another. For a standard image composite operation, you should rely on sod_composite_image() instead.
Parameters
sod_img source
The source or the composite image. The image can be loaded from disk using sod_img_load_from_file(), from memory (i.e. network socket) via sod_img_load_from_mem() or dynamically created via sod_make_image().
sod_img dest
The destination image that is going to hold the final result.
int dx
The x-coordinate, in logical units of the offset where to put the source image into dest.
int dy
The y-coordinate, in logical units of the offset where to put the source image into dest.
Return Value
None. In-place operation where the output is stored into the dest parameter this interface takes.
Example
Checkout the introduction course, the C/C++ samples on the download page or refer to the SOD Github Repository.
See also
sod_canny_edge_image • sod_image_draw_box • sod_image_find_blobs • sod_hough_lines_detect • sod_crop_image • sod_composite_image.