GreycLab / CImg

The CImg Library is a small and open-source C++ toolkit for image processing
http://cimg.eu
Other
1.49k stars 285 forks source link

Load image from memory #385

Open hafedh-trimeche opened 1 year ago

hafedh-trimeche commented 1 year ago

Hello, Would this function be used to load image from memory and how to free it?

CImg<unsigned char> load_img_from_memory(char* buffer, int w, int h, int s)
{
    return CImg<unsigned char>(buffer, s, w, h);
}

Best regards.