Resize an image
#include <img.h> int img_resize_fs( const img_t *src, img_t *dst );
img
This function resizes the image src to fit into the image described by dst. The algorithm is a simple “fast smooth” algorithm (that is, the algorithm yields results much more visually pleasing and smooth than simple pixel replication, but is faster than applying a filter function).
The formats of src and dst do not have to be the same; if they are different the data will be converted. However, a palette-based dst format is not supported.
Resize can be done in place, but the src and dst data pointers must be the same. You will get unpredictable results by partially overlapping src and dst data buffers.
Image library
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |