Use of C gm function inside C++ code (AutoOrientImage example)
Przemysław Sobala <[email protected]>
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <[email protected]> |
Hello What's the best way I can use a C libGraphicsMagick function in C++ code? Let's use AutoOrientImage (from magick/shear.h) as an example. I tried: Magick::Image image; image.read(.....) // auto orient MagickLib::ExceptionInfo tmpException; MagickLib::Image *tmpImage = AutoOrientImage(image.image(), image.orientation(), &tmpException); image.replaceImage(tmpImage); but it fails with: magick/shear.c:204: AutoOrientImage: Assertion `exception->signature == MagickSignature' failed. Magick: abort due to signal 6 (SIGABRT) "Abort"... What's the best way to accomplish that? -- Regards Przemysław Sobala ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Graphicsmagick-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help