SOD C/C++ API Reference - Image Processing


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_imagesod_image_draw_boxsod_image_find_blobssod_hough_lines_detectsod_crop_imagesod_composite_image.



Back