SOD C/C++ API Reference - Image Processing


Syntax

int sod_img_blob_save_as_bmp(const char * zPath, const unsigned char *zBlob, int width, int height, int nChannels);

Description

Save a raw memory representation of an image in a file on disk (BMP format). The BMP format expands Y to RGB in the file format and does not output alpha.

Parameters

const char    *zPath

Destination path on disk.

const unsigned char    *zBlob

Raw memory representation of an image.

int    width

Image width.

int    height

Image height.

int    nChannels

Total number of color channels.

Return Value

SOD_OK is returned on success. Any other return value indicates failure.

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



Back