I have an image, 1024 x 576 and I'm trying to crop a 400 x 300 area out of the top left.
Code: Select all
fprintf( stderr, "Before crop, image is %d x %d\n", MagickGetImageWidth( temp_mw ), MagickGetImageHeight( temp_mw ) );
MagickCropImage( temp_mw, 400, 300, 0, 0);
fprintf( stderr, "After crop, image is %d x %d\n", MagickGetImageWidth( temp_mw ), MagickGetImageHeight( temp_mw ) );
Code: Select all
Before crop, image is 1024 x 576
After crop, image is 400 x 204