Monitoring progress with Magick++
Posted: 2010-09-28T07:03:41-07:00
Hi,
I am using the Magick++ interface and I'd like to get notified about the internal progresses while opening/saving/processing images.
While searching the web, I found this entry: http://studio.imagemagick.org/pipermail ... 02097.html
which says there is no real monitor interface in Magick++, but the Core methods can be used with Magick++ classes as well (just one monitor per time limit, which would be ok).
I tried first registering the monitor in general as described in the above article:
where monitor looks like:
after that, I tried to register per image, with an Magick++ object of type Image called img, the call looks like:
with the monitor function being slightly different:
None of those functions are ever called during image processing/loading.
What is the proper way to get some feedback when using the Magick++ interface?
Thanks in advance
I am using the Magick++ interface and I'd like to get notified about the internal progresses while opening/saving/processing images.
While searching the web, I found this entry: http://studio.imagemagick.org/pipermail ... 02097.html
which says there is no real monitor interface in Magick++, but the Core methods can be used with Magick++ classes as well (just one monitor per time limit, which would be ok).
I tried first registering the monitor in general as described in the above article:
Code: Select all
MagickCore::SetMonitorHandler(monitor);
Code: Select all
MagickCore::MagickBooleanType monitor(const char* szTask, const MagickCore::MagickOffsetType position, const MagickCore::MagickSizeType span, MagickCore::ExceptionInfo* clientData);
Code: Select all
MagickCore::SetImageProgressMonitor(img.image(),monitor2,NULL);
Code: Select all
MagickCore::MagickBooleanType monitor2(const char* szTask, const MagickCore::MagickOffsetType position, const MagickCore::MagickSizeType span, void* clientData);
What is the proper way to get some feedback when using the Magick++ interface?
Thanks in advance