MagickCropImage
Posted: 2013-02-18T12:10:59-07:00
Am I misunderstanding this function?
I have an image, 1024 x 576 and I'm trying to crop a 400 x 300 area out of the top left.
I'm not getting what I expect though:
I don't understand why the cropped image height is 204 instead of 300.
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