Page 1 of 1
Display Function Not Working in Magick++ Demos
Posted: 2016-12-01T11:26:18-07:00
by Ksk5192
I have searched all throughout the forums and cannot seem to find an answer to this question. I have installed ImageMagick version 6.9.6-6-Q16-x86-dll and am trying to run the demo project "button" in Visual Studio 2013. At first glance I noticed that the line button.display(); was commented out (why?). I un-commented it and the code runs correctly as it exits with code 0. However, the image of the button is never displayed. Any help would be appreciated, thanks.
Kyle
Re: Display Function Not Working in Magick++ Demos
Posted: 2016-12-01T11:35:15-07:00
by snibgo
I believe "button.display()" outputs to an X-terminal. From your mention of a dll, you seem to be running Windows, so probably don't have X.
Re: Display Function Not Working in Magick++ Demos
Posted: 2016-12-01T13:06:13-07:00
by Ksk5192
Yes, I am running Windows. Would you happen to know then how I can properly get the button to display?
Re: Display Function Not Working in Magick++ Demos
Posted: 2016-12-01T13:29:15-07:00
by snibgo
Does the program write to an image file? If so, type the filename at the console. Or write to "win:" or "show:".
Re: Display Function Not Working in Magick++ Demos
Posted: 2016-12-06T21:31:36-07:00
by Ksk5192
I have the program write to an image file using the following code in c++:
image.write("finalimage.jpg");
image.display();
I don't understand why the line image.display() does not function. Nothing ever pops up and I have to manually go to my folder and double click the file to open the image. I have tried different extensions like .miff, .png, and .jpeg but none work. I want the program to automatically display the image when I run the compiler.
Re: Display Function Not Working in Magick++ Demos
Posted: 2016-12-06T21:50:15-07:00
by snibgo
Ksk5192 wrote:I don't understand why the line image.display() does not function.
I told you why.
snibgo wrote:I believe "button.display()" outputs to an X-terminal. From your mention of a dll, you seem to be running Windows, so probably don't have X.