@param worksheet Pointer to a lxw_worksheet instance to be updated.
@param row The zero indexed row number.
@param col The zero indexed column number.
@param filename The image filename, with path if required.
@return A #lxw_error code.
This function can be used to insert a image into a worksheet. The image can
be in PNG, JPEG or BMP format:
The worksheet_insert_image_opt() function takes additional optional
parameters to position and scale the image, see below.
**Note**:
The scaling of a image may be affected if is crosses a row that has its
default height changed due to a font that is larger than the default font
size or that has text wrapping turned on. To avoid this you should
explicitly set the height of the row using worksheet_set_row() if it
crosses an inserted image.
BMP images are only supported for backward compatibility. In general it is
best to avoid BMP images since they aren't compressed. If used, BMP images
must be 24 bit, true color, bitmaps.
@brief Insert an image in a worksheet cell.
@param worksheet Pointer to a lxw_worksheet instance to be updated. @param row The zero indexed row number. @param col The zero indexed column number. @param filename The image filename, with path if required.
@return A #lxw_error code.
This function can be used to insert a image into a worksheet. The image can be in PNG, JPEG or BMP format:
@code worksheet_insert_image(worksheet, 2, 1, "logo.png"); @endcode
@image html insert_image.png
The worksheet_insert_image_opt() function takes additional optional parameters to position and scale the image, see below.
**Note**: The scaling of a image may be affected if is crosses a row that has its default height changed due to a font that is larger than the default font size or that has text wrapping turned on. To avoid this you should explicitly set the height of the row using worksheet_set_row() if it crosses an inserted image.
BMP images are only supported for backward compatibility. In general it is best to avoid BMP images since they aren't compressed. If used, BMP images must be 24 bit, true color, bitmaps.