The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.

I have this command. Now in that command the resize parameter is in percentage so I tried to write same thing using C and below is my code.
The problem with C code is when MagickExtendImage executed the image will be cropped. Because the resize in percentage and pixel are not same. So is there any function or any option in MagickWand C API to resize image percentage wise?