14using namespace Magick;
16int main(
int,
char **argv)
20 InitializeMagick(*argv);
31 string input=
"100x50+10-5!";
34 if ((geometry.width() != 100) || (geometry.height() != 50) ||
35 (geometry.xOff() != 10) || (geometry.yOff() != -5) ||
36 (geometry.aspect() ==
false))
39 cout <<
"Line: " << __LINE__
40 <<
" Conversion from " << input <<
" failed"
44 string output=geometry;
48 cout <<
"Line: " << __LINE__
49 <<
" Output " << output <<
" is not the same as " << input
55 cout <<
"Caught exception: " << error_.what() << endl;
58 catch( exception &error_ )
60 cout <<
"Caught exception: " << error_.what() << endl;
66 cout << failures <<
" failures" << endl;