&x, &y,
&width, &height );
- modifyImage();
ExceptionInfo exceptionInfo;
GetExceptionInfo( &exceptionInfo );
- LiquidRescaleImage( image(), width, height, x, y, &exceptionInfo );
+ MagickCore::Image* newImage = LiquidRescaleImage( image(), width, height,
+ x, y, &exceptionInfo );
+ replaceImage( newImage );
throwException( exceptionInfo );
(void) DestroyExceptionInfo( &exceptionInfo );
}
{
ExceptionInfo exceptionInfo;
GetExceptionInfo( &exceptionInfo );
- MagickCore::Image* newImage =
- MagnifyImage( image(), &exceptionInfo );
+ MagickCore::Image* newImage = MagnifyImage( image(), &exceptionInfo );
replaceImage( newImage );
throwException( exceptionInfo );
(void) DestroyExceptionInfo( &exceptionInfo );