Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn Off Coordinate Info in Display #420

Open
jtaylorme opened this issue Jun 7, 2024 · 2 comments
Open

Turn Off Coordinate Info in Display #420

jtaylorme opened this issue Jun 7, 2024 · 2 comments

Comments

@jtaylorme
Copy link

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

@dtschump
Copy link
Collaborator

dtschump commented Jun 7, 2024

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;
}

@jtaylorme
Copy link
Author

jtaylorme commented Jun 7, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants