Page 1 of 1

How to use distort function of ImageMagick.?

Posted: 2012-08-15T22:49:38-07:00
by mbatra
Hi,

I have to use distort function of ImageMagicK (Magick++). I don't have clear understanding of the parameters passed to it.

void distort ( const DistortImageMethod method_,
const size_t number_arguments_,
const double *arguments_,
const bool bestfit_ = false );

Can anybody help me which argumets to pass to the function while calling.?

Regards,
mbatra

Re: How to use distort function of ImageMagick.?

Posted: 2012-08-16T07:17:29-07:00
by el_supremo
My MagickWand examples in C (link is below in my sig) has examples of using MagickDistortImage in the affine transformation example and in the text effects example. It isn't C++ but it should help you with the arguments for the distort method.

Pete

Re: How to use distort function of ImageMagick.?

Posted: 2012-08-16T22:44:33-07:00
by mbatra
el_supremo wrote:My MagickWand examples in C (link is below in my sig) has examples of using MagickDistortImage in the affine transformation example and in the text effects example. It isn't C++ but it should help you with the arguments for the distort method.

Pete

Hi,

Thanx for the reply.
I was not able to open the link you have given. Can u please paste some lines of code to understand about the arguments.

Thanx & Regards,
mbatra

Re: How to use distort function of ImageMagick.?

Posted: 2012-08-17T07:42:26-07:00
by el_supremo
These are direct links to the source code of the two examples I mentioned.
http://members.shaw.ca/el.supremo/MagickWand/affine.htm

http://members.shaw.ca/el.supremo/Magic ... ffects.htm

Pete