How to use distort function of ImageMagick.?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
mbatra
Posts: 18
Joined: 2012-05-29T08:37:10-07:00
Authentication code: 13

How to use distort function of ImageMagick.?

Post 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
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: How to use distort function of ImageMagick.?

Post 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
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
mbatra
Posts: 18
Joined: 2012-05-29T08:37:10-07:00
Authentication code: 13

Re: How to use distort function of ImageMagick.?

Post 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
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: How to use distort function of ImageMagick.?

Post 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
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
Post Reply