ThrowImageException;
}
-void Magick::Image::distort(const DistortImageMethod method_,
+void Magick::Image::distort(const DistortMethod method_,
const size_t numberArguments_,const double *arguments_,const bool bestfit_)
{
MagickCore::Image
// mapping color lookups of the source image to a new destination image
// usally of the same size as the source image, unless 'bestfit' is set to
// true.
- void distort(const DistortImageMethod method_,
+ void distort(const DistortMethod method_,
const size_t numberArguments_,const double *arguments_,
const bool bestfit_=false);
using MagickCore::PreviousDispose;
// Distort methods
- using MagickCore::DistortImageMethod;
+ using MagickCore::DistortMethod;
using MagickCore::UndefinedDistortion;
using MagickCore::AffineDistortion;
using MagickCore::AffineProjectionDistortion;
class MagickPPExport distortImage : public std::unary_function<Image&,void>
{
public:
- distortImage( const Magick::DistortImageMethod method_,
+ distortImage( const Magick::DistortMethod method_,
const size_t number_arguments_,
const double *arguments_,
const bool bestfit_ );
- distortImage( const Magick::DistortImageMethod method_,
+ distortImage( const Magick::DistortMethod method_,
const size_t number_arguments_,
const double *arguments_ );
void operator()( Image &image_ ) const;
private:
- DistortImageMethod _method;
+ DistortMethod _method;
size_t _number_arguments;
const double *_arguments;
bool _bestfit;
// mapping color lookups of the source image to a new destination image
// usally of the same size as the source image, unless 'bestfit' is set to
// true.
-Magick::distortImage::distortImage( const Magick::DistortImageMethod method_,
+Magick::distortImage::distortImage( const Magick::DistortMethod method_,
const size_t number_arguments_,
const double *arguments_,
const bool bestfit_ )
_bestfit( bestfit_ )
{
}
-Magick::distortImage::distortImage( const Magick::DistortImageMethod method_,
+Magick::distortImage::distortImage( const Magick::DistortMethod method_,
const size_t number_arguments_,
const double *arguments_ )
: _method ( method_ ),
%
% The format of the GenerateCoefficients() method is:
%
-% Image *GenerateCoefficients(const Image *image,DistortImageMethod method,
+% Image *GenerateCoefficients(const Image *image,DistortMethod method,
% const size_t number_arguments,const double *arguments,
% size_t number_values, ExceptionInfo *exception)
%
}
static double *GenerateCoefficients(const Image *image,
- DistortImageMethod *method,const size_t number_arguments,
- const double *arguments,size_t number_values,ExceptionInfo *exception)
+ DistortMethod *method,const size_t number_arguments,const double *arguments,
+ size_t number_values,ExceptionInfo *exception)
{
double
*coeff;
%
% The format of the DistortImage() method is:
%
-% Image *DistortImage(const Image *image,const DistortImageMethod method,
+% Image *DistortImage(const Image *image,const DistortMethod method,
% const size_t number_arguments,const double *arguments,
% MagickBooleanType bestfit, ExceptionInfo *exception)
%
% instead
%
*/
-MagickExport Image *DistortImage(const Image *image,DistortImageMethod method,
+MagickExport Image *DistortImage(const Image *image, DistortMethod method,
const size_t number_arguments,const double *arguments,
MagickBooleanType bestfit,ExceptionInfo *exception)
{
Convert input arguments into mapping coefficients, this this case
we are mapping (distorting) colors, rather than coordinates.
*/
- { DistortImageMethod
+ { DistortMethod
distort_method;
- distort_method=(DistortImageMethod) method;
+ distort_method=(DistortMethod) method;
if ( distort_method >= SentinelDistortion )
distort_method = ShepardsDistortion; /* Pretend to be Shepards */
coeff = GenerateCoefficients(image, &distort_method, number_arguments,
ShepardsDistortion,
ResizeDistortion,
SentinelDistortion
-} DistortImageMethod;
+} DistortMethod;
typedef enum
{
extern MagickExport Image
*AffineTransformImage(const Image *,const AffineMatrix *,ExceptionInfo *),
- *DistortImage(const Image *,const DistortImageMethod,const size_t,
+ *DistortImage(const Image *,const DistortMethod,const size_t,
const double *,MagickBooleanType,ExceptionInfo *exception),
*DistortResizeImage(const Image *,const size_t,const size_t,ExceptionInfo *),
*RotateImage(const Image *,const double,ExceptionInfo *),
% The format of the MagickDistortImage method is:
%
% MagickBooleanType MagickDistortImage(MagickWand *wand,
-% const DistortImageMethod method,const size_t number_arguments,
+% const DistortMethod method,const size_t number_arguments,
% const double *arguments,const MagickBooleanType bestfit)
%
% A description of each parameter follows:
%
*/
WandExport MagickBooleanType MagickDistortImage(MagickWand *wand,
- const DistortImageMethod method,const size_t number_arguments,
+ const DistortMethod method,const size_t number_arguments,
const double *arguments,const MagickBooleanType bestfit)
{
Image
MagickDespeckleImage(MagickWand *),
MagickDisplayImage(MagickWand *,const char *),
MagickDisplayImages(MagickWand *,const char *),
- MagickDistortImage(MagickWand *,const DistortImageMethod,const size_t,
+ MagickDistortImage(MagickWand *,const DistortMethod,const size_t,
const double *,const MagickBooleanType),
MagickDrawImage(MagickWand *,const DrawingWand *),
MagickEdgeImage(MagickWand *,const double),
const char
*p;
- DistortImageMethod
+ DistortMethod
method;
double
Distort image.
*/
(void) SyncImageSettings(mogrify_info,*image,exception);
- method=(DistortImageMethod) ParseCommandOption(MagickDistortOptions,
+ method=(DistortMethod) ParseCommandOption(MagickDistortOptions,
MagickFalse,argv[i+1]);
if (method == ResizeDistortion)
{
if ( parse < 0 )
CLIWandExceptArgBreak(OptionError,"UnrecognizedDistortMethod",
option,arg1);
- if ((DistortImageMethod) parse == ResizeDistortion)
+ if ((DistortMethod) parse == ResizeDistortion)
{
double
resize_args[2];
(void) ParseRegionGeometry(_image,arg2,&geometry,_exception);
resize_args[0]=(double) geometry.width;
resize_args[1]=(double) geometry.height;
- new_image=DistortImage(_image,(DistortImageMethod) parse,
+ new_image=DistortImage(_image,(DistortMethod) parse,
(size_t)2,resize_args,MagickTrue,_exception);
break;
}
if (args == (double *) NULL )
CLIWandExceptArgBreak(OptionError,"InvalidNumberList",option,arg2);
- new_image=DistortImage(_image,(DistortImageMethod) parse,(size_t)
+ new_image=DistortImage(_image,(DistortMethod) parse,(size_t)
count,args,IsPlusOp,_exception);
args=(double *) RelinquishMagickMemory(args);
break;