You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here are the images I am trying to load and show in a form easily:
I also tried code like:
CString path;
path.Format("some_path_to_file");
CImg<uint8_t> visu(500, 400, 8, 3, 0); // and other combinations like 3, 1 or 1, 3 etc
visu.load_jpeg(path);
But again no favourable results.
As you will see the images are 24 bit and not 8 bit, however I tried many combinations and also experimented with CImg<uint16_t> and CImg<uint32_t> with no results.
Thank you for your help.
The text was updated successfully, but these errors were encountered:
This is a bug, regarding opening a simple jpg and show it on a form automatically.
I am trying to run this simple code :
CString path;
path.Format("some_path_to_file");
CImg<uint8_t> image(path);
Below are the responses I get and
Here are the images I am trying to load and show in a form easily:
I also tried code like:
CString path;
path.Format("some_path_to_file");
CImg<uint8_t> visu(500, 400, 8, 3, 0); // and other combinations like 3, 1 or 1, 3 etc
visu.load_jpeg(path);
But again no favourable results.
As you will see the images are 24 bit and not 8 bit, however I tried many combinations and also experimented with CImg<uint16_t> and CImg<uint32_t> with no results.
Thank you for your help.
The text was updated successfully, but these errors were encountered: