![]()  | 
![]()  | 
![]()  | 
![]()  | 
Convert an image from one format to another
#include <img.h>
int img_dtransform( const img_t *src,
                    img_t *dst );
img
This function converts a img_t from one format to another. Best to use this when you only need to do the transform once on a single img_t. Returns IMG_ERR_OK if the transform succeeed, otherwise returns one of the documented error codes of img_dtransform_create()
![]()  | 
This function cannot convert from a direct format source to a palette-based format destination. | 
Image library
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
img_convert_data(), IMG_FMT_BPL(), img_lib_attach()
![]()  | 
![]()  | 
![]()  | 
![]()  |