Open jtaylorme opened 1 month ago
Here's a basic example of using the CImgDisplay
class for doing this:
#include "CImg.h"
using namespace cimg_library;
int main() {
CImg<> img(640,480,1,3,0);
img.draw_plasma(1,1).normalize(0,255);
CImgDisplay disp(img);
while (!disp.is_closed()) {
disp.wait();
if (disp.is_resized()) disp.resize().display(img);
}
return 0;
}
Thank you. I will see if I can adjust my code to use this instead of the display() function. That doing what I needed other than the info being displayed.
Jim
From: David Tschumperlé @.> Sent: Friday, June 7, 2024 11:16 AM To: GreycLab/CImg @.> Cc: Jim Taylor @.>; Author @.> Subject: Re: [GreycLab/CImg] Turn Off Coordinate Info in Display (Issue #420)
Here's a basic example of using the CImgDisplay class for doing this:
using namespace cimg_library;
int main() {
CImg<> img(640,480,1,3,0);
img.draw_plasma(1,1).normalize(0,255);
CImgDisplay disp(img);
while (!disp.is_closed()) {
disp.wait();
if (disp.is_resized()) disp.resize().display(img);
}
return 0;
}
— Reply to this email directly, view it on GitHubhttps://github.com/GreycLab/CImg/issues/420#issuecomment-2155145207, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGAFOTFD4POAQWSJN4IKI43ZGHMDVAVCNFSM6AAAAABI5XOLNKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGE2DKMRQG4. You are receiving this because you authored the thread.Message ID: @.***>
This seems like one of those things where I have to be missing the obvious. I would like to simply display the image without the coordinate information and lines. I tried using the display_info parameter in the display() function but didn't make a difference. I have spent an hour or two on this issue but to no avail. What am I missing? Thank you.
Jim