Logo Search packages:      
Sourcecode: zebra version File versions  Download package

void zebra_image_set_data ( zebra_image_t image,
const void *  data,
unsigned long  data_byte_length,
zebra_image_cleanup_handler_t cleanup_hndlr 

specify image sample data. when image data is no longer needed by the library the specific data cleanup handler will be called (unless NULL)

application image data will not be modified by the library

Definition at line 105 of file image.c.

References zebra_image_free_data(), and zebra_image_set_data().

Referenced by zebra::Image::set_data(), and zebra_image_set_data().

    img->data = data;
    img->datalen = len;
    img->cleanup = cleanup;

Generated by  Doxygen 1.6.0   Back to index