SIGBART when calling image.geometry
Posted: 2011-11-18T02:06:51-07:00
Hi
when ever i try to access the geometry with following code:
#include <Magick++.h>
#include <Magick++/Geometry.h>
i recieve a SIGBART crash when calling image.geometry()
what am i doing wrong?
when ever i try to access the geometry with following code:
#include <Magick++.h>
#include <Magick++/Geometry.h>
Code: Select all
void function() {
Image image( "100x100", "white" );
image.read("test.jpg");
Magick::Geometry geo = image.geometry();
MagickCore::ExceptionInfo exceptionInfo;
MagickCore::GetExceptionInfo( &exceptionInfo );
MagickCore::ShadowImage(image.image(), 5, 5, 200, 200 , &exceptionInfo);
image.write( "test123.jpg" );
}
what am i doing wrong?