I want migrating an existing project to c++, I am new to the language and want to know if GraphicsMagick is a good choice to get there. I need to display a very wide tiff image, be able to scroll the image, and anotate on a layer above. I have read that GMs strength is manipulation, not display. How would I do this if possible?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is command line. How to do this in c++ project?
If you are using X11, it is possible to display a Magick++ Image using
the display() method. What you get is the same as if you did:
gm convert file.png x:
You will find that there is a pop-up menu which responds to mouse
buttons (and the middle button brings up a magnifier window), but most
of the features of 'gm display' are intentionally removed.
For a more sophisticated solution, you may want to use a C++ widget
toolkit (e.g, Qt, WxWidgets, or Windows MFC) and convert Magick++
Image into the form used by the toolkit. This is likely less
efficient but allows you to integrate the images into your own GUI.
I want migrating an existing project to c++, I am new to the language and want to know if GraphicsMagick is a good choice to get there. I need to display a very wide tiff image, be able to scroll the image, and anotate on a layer above. I have read that GMs strength is manipulation, not display. How would I do this if possible?
Have you tried it? Just type "gm display file.tiff" and use the pan/scroll icon.
This is command line. How to do this in c++ project?
On Sat, 30 Jan 2016, xentrica wrote:
If you are using X11, it is possible to display a Magick++ Image using
the display() method. What you get is the same as if you did:
You will find that there is a pop-up menu which responds to mouse
buttons (and the middle button brings up a magnifier window), but most
of the features of 'gm display' are intentionally removed.
For a more sophisticated solution, you may want to use a C++ widget
toolkit (e.g, Qt, WxWidgets, or Windows MFC) and convert Magick++
Image into the form used by the toolkit. This is likely less
efficient but allows you to integrate the images into your own GUI.
Bob
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/