Page 1 of 1

How do I get the results of identifyimagecommand using the C API?

Posted: 2014-11-24T01:20:59-07:00
by che1404
Hi all,
I'm using the IdentifyImageCommand C API method but I can only see the results on the standard output. I have tried to redirect the std::out to an own string stream, but the command keeps printing only to the console.

Any ideas on how could I get the results of the commando into a string (or string stream) variable?

Thanks,
Robert.

Re: How do I get the results of identifyimagecommand using the C API?

Posted: 2014-11-24T02:03:08-07:00
by snibgo
freopen() can redirect stdout to a named file. I don't know if you can use that with string streams.

Re: How do I get the results of identifyimagecommand using the C API?

Posted: 2014-11-24T02:37:00-07:00
by che1404
Hey, that worked!
Thanks!