// This may look like C code, but it is really -*- C++ -*-
//
// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003
-// Copyright Dirk Lemstra 2014
+// Copyright Dirk Lemstra 2014-2015
//
// Implementation of Exception and derived classes
//
std::string message=formatExceptionMessage(exception_);
switch (exception_->severity)
{
- case BlobError:
- case BlobFatalError:
+ case MagickCore::BlobError:
+ case MagickCore::BlobFatalError:
return new ErrorBlob(message);
- case BlobWarning:
+ case MagickCore::BlobWarning:
return new WarningBlob(message);
- case CacheError:
- case CacheFatalError:
+ case MagickCore::CacheError:
+ case MagickCore::CacheFatalError:
return new ErrorCache(message);
- case CacheWarning:
+ case MagickCore::CacheWarning:
return new WarningCache(message);
- case CoderError:
- case CoderFatalError:
+ case MagickCore::CoderError:
+ case MagickCore::CoderFatalError:
return new ErrorCoder(message);
- case CoderWarning:
+ case MagickCore::CoderWarning:
return new WarningCoder(message);
- case ConfigureError:
- case ConfigureFatalError:
+ case MagickCore::ConfigureError:
+ case MagickCore::ConfigureFatalError:
return new ErrorConfigure(message);
- case ConfigureWarning:
+ case MagickCore::ConfigureWarning:
return new WarningConfigure(message);
- case CorruptImageError:
- case CorruptImageFatalError:
+ case MagickCore::CorruptImageError:
+ case MagickCore::CorruptImageFatalError:
return new ErrorCorruptImage(message);
- case CorruptImageWarning:
+ case MagickCore::CorruptImageWarning:
return new WarningCorruptImage(message);
- case DelegateError:
- case DelegateFatalError:
+ case MagickCore::DelegateError:
+ case MagickCore::DelegateFatalError:
return new ErrorDelegate(message);
- case DelegateWarning:
+ case MagickCore::DelegateWarning:
return new WarningDelegate(message);
- case DrawError:
- case DrawFatalError:
+ case MagickCore::DrawError:
+ case MagickCore::DrawFatalError:
return new ErrorDraw(message);
- case DrawWarning:
+ case MagickCore::DrawWarning:
return new WarningDraw(message);
- case FileOpenError:
- case FileOpenFatalError:
+ case MagickCore::FileOpenError:
+ case MagickCore::FileOpenFatalError:
return new ErrorFileOpen(message);
- case FileOpenWarning:
+ case MagickCore::FileOpenWarning:
return new WarningFileOpen(message);
- case ImageError:
- case ImageFatalError:
+ case MagickCore::ImageError:
+ case MagickCore::ImageFatalError:
return new ErrorImage(message);
- case ImageWarning:
+ case MagickCore::ImageWarning:
return new WarningImage(message);
- case MissingDelegateError:
- case MissingDelegateFatalError:
+ case MagickCore::MissingDelegateError:
+ case MagickCore::MissingDelegateFatalError:
return new ErrorMissingDelegate(message);
- case MissingDelegateWarning:
+ case MagickCore::MissingDelegateWarning:
return new WarningMissingDelegate(message);
- case ModuleError:
- case ModuleFatalError:
+ case MagickCore::ModuleError:
+ case MagickCore::ModuleFatalError:
return new ErrorModule(message);
- case ModuleWarning:
+ case MagickCore::ModuleWarning:
return new WarningModule(message);
- case MonitorError:
- case MonitorFatalError:
+ case MagickCore::MonitorError:
+ case MagickCore::MonitorFatalError:
return new ErrorMonitor(message);
- case MonitorWarning:
+ case MagickCore::MonitorWarning:
return new WarningMonitor(message);
- case OptionError:
- case OptionFatalError:
+ case MagickCore::OptionError:
+ case MagickCore::OptionFatalError:
return new ErrorOption(message);
- case OptionWarning:
+ case MagickCore::OptionWarning:
return new WarningOption(message);
- case PolicyWarning:
+ case MagickCore::PolicyWarning:
return new WarningPolicy(message);
- case PolicyError:
- case PolicyFatalError:
+ case MagickCore::PolicyError:
+ case MagickCore::PolicyFatalError:
return new ErrorPolicy(message);
- case RegistryError:
- case RegistryFatalError:
+ case MagickCore::RegistryError:
+ case MagickCore::RegistryFatalError:
return new ErrorRegistry(message);
- case RegistryWarning:
+ case MagickCore::RegistryWarning:
return new WarningRegistry(message);
- case ResourceLimitError:
- case ResourceLimitFatalError:
+ case MagickCore::ResourceLimitError:
+ case MagickCore::ResourceLimitFatalError:
return new ErrorResourceLimit(message);
- case ResourceLimitWarning:
+ case MagickCore::ResourceLimitWarning:
return new WarningResourceLimit(message);
- case StreamError:
- case StreamFatalError:
+ case MagickCore::StreamError:
+ case MagickCore::StreamFatalError:
return new ErrorStream(message);
- case StreamWarning:
+ case MagickCore::StreamWarning:
return new WarningStream(message);
- case TypeError:
- case TypeFatalError:
+ case MagickCore::TypeError:
+ case MagickCore::TypeFatalError:
return new ErrorType(message);
- case TypeWarning:
+ case MagickCore::TypeWarning:
return new WarningType(message);
- case UndefinedException:
+ case MagickCore::UndefinedException:
default:
return new ErrorUndefined(message);
- case XServerError:
- case XServerFatalError:
+ case MagickCore::XServerError:
+ case MagickCore::XServerFatalError:
return new ErrorXServer(message);
- case XServerWarning:
+ case MagickCore::XServerWarning:
return new WarningXServer(message);
}
}
MagickPPExport void Magick::throwExceptionExplicit(
- const ExceptionType severity_,const char* reason_,const char* description_)
+ const MagickCore::ExceptionType severity_,const char* reason_,
+ const char* description_)
{
// Just return if there is no reported error
- if (severity_ == UndefinedException)
+ if (severity_ == MagickCore::UndefinedException)
return;
GetPPException;
- ThrowException(exceptionInfo,severity_,reason_, description_);
- ThrowPPException;
+ ThrowException(exceptionInfo,severity_,reason_,description_);
+ ThrowPPException(false);
}
-MagickPPExport void Magick::throwException(ExceptionInfo *exception_)
+MagickPPExport void Magick::throwException(ExceptionInfo *exception_,
+ const bool quiet_)
{
const ExceptionInfo
*p;
*nestedException,
*q;
- ExceptionType
+ MagickCore::ExceptionType
severity;
size_t
index;
+ std::string
+ message;
+
// Just return if there is no reported error
- if (exception_->severity == UndefinedException)
+ if (exception_->severity == MagickCore::UndefinedException)
return;
- std::string message=formatExceptionMessage(exception_);
+ message=formatExceptionMessage(exception_);
nestedException=(Exception *) NULL;
LockSemaphoreInfo(exception_->semaphore);
if (exception_->exceptions != (void *) NULL)
}
UnlockSemaphoreInfo(exception_->semaphore);
severity=exception_->severity;
+
+ if ((quiet_) && (severity < MagickCore::ErrorException))
+ {
+ delete nestedException;
+ return;
+ }
+
DestroyExceptionInfo(exception_);
switch (severity)
{
- case BlobError:
- case BlobFatalError:
+ case MagickCore::BlobError:
+ case MagickCore::BlobFatalError:
throw ErrorBlob(message,nestedException);
- case BlobWarning:
+ case MagickCore::BlobWarning:
throw WarningBlob(message,nestedException);
- case CacheError:
- case CacheFatalError:
+ case MagickCore::CacheError:
+ case MagickCore::CacheFatalError:
throw ErrorCache(message,nestedException);
- case CacheWarning:
+ case MagickCore::CacheWarning:
throw WarningCache(message,nestedException);
- case CoderError:
- case CoderFatalError:
+ case MagickCore::CoderError:
+ case MagickCore::CoderFatalError:
throw ErrorCoder(message,nestedException);
- case CoderWarning:
+ case MagickCore::CoderWarning:
throw WarningCoder(message,nestedException);
- case ConfigureError:
- case ConfigureFatalError:
+ case MagickCore::ConfigureError:
+ case MagickCore::ConfigureFatalError:
throw ErrorConfigure(message,nestedException);
- case ConfigureWarning:
+ case MagickCore::ConfigureWarning:
throw WarningConfigure(message,nestedException);
- case CorruptImageError:
- case CorruptImageFatalError:
+ case MagickCore::CorruptImageError:
+ case MagickCore::CorruptImageFatalError:
throw ErrorCorruptImage(message,nestedException);
- case CorruptImageWarning:
+ case MagickCore::CorruptImageWarning:
throw WarningCorruptImage(message,nestedException);
- case DelegateError:
- case DelegateFatalError:
+ case MagickCore::DelegateError:
+ case MagickCore::DelegateFatalError:
throw ErrorDelegate(message,nestedException);
- case DelegateWarning:
+ case MagickCore::DelegateWarning:
throw WarningDelegate(message,nestedException);
- case DrawError:
- case DrawFatalError:
+ case MagickCore::DrawError:
+ case MagickCore::DrawFatalError:
throw ErrorDraw(message,nestedException);
- case DrawWarning:
+ case MagickCore::DrawWarning:
throw WarningDraw(message,nestedException);
- case FileOpenError:
- case FileOpenFatalError:
+ case MagickCore::FileOpenError:
+ case MagickCore::FileOpenFatalError:
throw ErrorFileOpen(message,nestedException);
- case FileOpenWarning:
+ case MagickCore::FileOpenWarning:
throw WarningFileOpen(message,nestedException);
- case ImageError:
- case ImageFatalError:
+ case MagickCore::ImageError:
+ case MagickCore::ImageFatalError:
throw ErrorImage(message,nestedException);
- case ImageWarning:
+ case MagickCore::ImageWarning:
throw WarningImage(message,nestedException);
- case MissingDelegateError:
- case MissingDelegateFatalError:
+ case MagickCore::MissingDelegateError:
+ case MagickCore::MissingDelegateFatalError:
throw ErrorMissingDelegate(message,nestedException);
- case MissingDelegateWarning:
+ case MagickCore::MissingDelegateWarning:
throw WarningMissingDelegate(message,nestedException);
- case ModuleError:
- case ModuleFatalError:
+ case MagickCore::ModuleError:
+ case MagickCore::ModuleFatalError:
throw ErrorModule(message,nestedException);
- case ModuleWarning:
+ case MagickCore::ModuleWarning:
throw WarningModule(message,nestedException);
- case MonitorError:
- case MonitorFatalError:
+ case MagickCore::MonitorError:
+ case MagickCore::MonitorFatalError:
throw ErrorMonitor(message,nestedException);
- case MonitorWarning:
+ case MagickCore::MonitorWarning:
throw WarningMonitor(message,nestedException);
- case OptionError:
- case OptionFatalError:
+ case MagickCore::OptionError:
+ case MagickCore::OptionFatalError:
throw ErrorOption(message,nestedException);
- case OptionWarning:
+ case MagickCore::OptionWarning:
throw WarningOption(message,nestedException);
- case PolicyWarning:
+ case MagickCore::PolicyWarning:
throw WarningPolicy(message,nestedException);
- case PolicyError:
- case PolicyFatalError:
+ case MagickCore::PolicyError:
+ case MagickCore::PolicyFatalError:
throw ErrorPolicy(message,nestedException);
- case RegistryError:
- case RegistryFatalError:
+ case MagickCore::RegistryError:
+ case MagickCore::RegistryFatalError:
throw ErrorRegistry(message,nestedException);
- case RegistryWarning:
+ case MagickCore::RegistryWarning:
throw WarningRegistry(message,nestedException);
- case ResourceLimitError:
- case ResourceLimitFatalError:
+ case MagickCore::ResourceLimitError:
+ case MagickCore::ResourceLimitFatalError:
throw ErrorResourceLimit(message,nestedException);
- case ResourceLimitWarning:
+ case MagickCore::ResourceLimitWarning:
throw WarningResourceLimit(message,nestedException);
- case StreamError:
- case StreamFatalError:
+ case MagickCore::StreamError:
+ case MagickCore::StreamFatalError:
throw ErrorStream(message,nestedException);
- case StreamWarning:
+ case MagickCore::StreamWarning:
throw WarningStream(message,nestedException);
- case TypeError:
- case TypeFatalError:
+ case MagickCore::TypeError:
+ case MagickCore::TypeFatalError:
throw ErrorType(message,nestedException);
- case TypeWarning:
+ case MagickCore::TypeWarning:
throw WarningType(message,nestedException);
- case UndefinedException:
+ case MagickCore::UndefinedException:
default:
throw ErrorUndefined(message,nestedException);
- case XServerError:
- case XServerFatalError:
+ case MagickCore::XServerError:
+ case MagickCore::XServerFatalError:
throw ErrorXServer(message,nestedException);
- case XServerWarning:
+ case MagickCore::XServerWarning:
throw WarningXServer(message,nestedException);
}
}
\ No newline at end of file
// This may look like C code, but it is really -*- C++ -*-
//
// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003
-// Copyright Dirk Lemstra 2013-2014
+// Copyright Dirk Lemstra 2013-2015
//
// Implementation of Image
//
#define AbsoluteValue(x) ((x) < 0 ? -(x) : (x))
#define MagickPI 3.14159265358979323846264338327950288419716939937510
#define DegreesToRadians(x) (MagickPI*(x)/180.0)
+#define ThrowImageException ThrowPPException(_quiet)
MagickPPExport const char *Magick::borderGeometryDefault="6x6+0+0";
MagickPPExport const char *Magick::frameGeometryDefault="25x25+6+6";
}
Magick::Image::Image(void)
- : _imgRef(new ImageRef)
+ : _imgRef(new ImageRef),
+ _quiet(false)
{
}
Magick::Image::Image(const Blob &blob_)
- : _imgRef(new ImageRef)
+ : _imgRef(new ImageRef),
+ _quiet(false)
{
try
{
}
Magick::Image::Image(const Blob &blob_,const Geometry &size_)
- : _imgRef(new ImageRef)
+ : _imgRef(new ImageRef),
+ _quiet(false)
{
try
{
Magick::Image::Image(const Blob &blob_,const Geometry &size_,
const size_t depth_)
- : _imgRef(new ImageRef)
+ : _imgRef(new ImageRef),
+ _quiet(false)
{
try
{
Magick::Image::Image(const Blob &blob_,const Geometry &size_,
const size_t depth_,const std::string &magick_)
- : _imgRef(new ImageRef)
+ : _imgRef(new ImageRef),
+ _quiet(false)
{
try
{
Magick::Image::Image(const Blob &blob_,const Geometry &size_,
const std::string &magick_)
- : _imgRef(new ImageRef)
+ : _imgRef(new ImageRef),
+ _quiet(false)
{
try
{
}
Magick::Image::Image(const Geometry &size_,const Color &color_)
- : _imgRef(new ImageRef)
+ : _imgRef(new ImageRef),
+ _quiet(false)
{
// xc: prefix specifies an X11 color string
std::string imageSpec("xc:");
}
Magick::Image::Image(const Image &image_)
- : _imgRef(image_._imgRef)
+ : _imgRef(image_._imgRef),
+ _quiet(image_._quiet)
{
_imgRef->increase();
}
Magick::Image::Image(const size_t width_,const size_t height_,
const std::string &map_,const StorageType type_,const void *pixels_)
- : _imgRef(new ImageRef)
+ : _imgRef(new ImageRef),
+ _quiet(false)
{
try
{
}
Magick::Image::Image(const std::string &imageSpec_)
- : _imgRef(new ImageRef)
+ : _imgRef(new ImageRef),
+ _quiet(false)
{
try
{
if ((matteFlag_ && !constImage()->alpha_trait) ||
(constImage()->alpha_trait && !matteFlag_))
SetImageAlpha(image(),OpaqueAlpha,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
image()->alpha_trait=matteFlag_ ? BlendPixelTrait : UndefinedPixelTrait;
}
GetPPException;
bbox=GetImageBoundingBox(constImage(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
return(Geometry(bbox));
}
SetPPChannelMask(channel_);
SetImageDepth(image(),depth_,exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
size_t Magick::Image::channelDepth(const ChannelType channel_)
SetPPChannelMask(channel_);
channel_depth=GetImageDepth(constImage(),exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
return(channel_depth);
}
modifyImage();
GetPPException;
SyncImage(image(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
image()->colormap=(PixelInfo *)RelinquishMagickMemory(image()->colormap);
image()->storage_class=static_cast<MagickCore::ClassType>(DirectClass);
return;
void Magick::Image::colorMapSize(const size_t entries_)
{
if (entries_ >MaxColormapSize)
- throwExceptionExplicit(OptionError,
+ throwExceptionExplicit(MagickCore::OptionError,
"Colormap entries must not exceed MaxColormapSize");
modifyImage();
GetPPException;
(void) AcquireImageColormap(image(),entries_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
size_t Magick::Image::colorMapSize(void) const
{
if (!constImage()->colormap)
- throwExceptionExplicit(OptionError,"Image does not contain a colormap");
+ throwExceptionExplicit(MagickCore::OptionError,
+ "Image does not contain a colormap");
return(constImage()->colors);
}
modifyImage();
GetPPException;
TransformImageColorspace(image(),colorSpace_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
Magick::ColorspaceType Magick::Image::colorSpace(void) const
modifyImage();
GetPPException;
SetImageColorspace(image(),colorSpace_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
options()->colorspaceType(colorSpace_);
}
SetImageProperty(image(),"Comment",NULL,exceptionInfo);
if (comment_.length() > 0)
SetImageProperty(image(),"Comment",comment_.c_str(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
std::string Magick::Image::comment(void) const
GetPPException;
value=GetImageProperty(constImage(),"Comment",exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
if (value)
return(std::string(value));
if (constImage()->directory)
return(std::string(constImage()->directory));
- throwExceptionExplicit(CorruptImageWarning,
- "Image does not contain a directory");
+ if (!_quiet)
+ throwExceptionExplicit(MagickCore::CorruptImageWarning,
+ "Image does not contain a directory");
return(std::string());
}
GetPPException;
(void) SetImageProfile(image(),"exif",exif_profile,exceptionInfo);
exif_profile=DestroyStringInfo(exif_profile);
- ThrowPPException;
+ ThrowImageException;
}
}
GetPPException;
image=CloneImage(tmpTexture,0,0,MagickTrue,exceptionInfo);
texture.replaceImage(image);
- ThrowPPException;
+ ThrowImageException;
}
return(texture);
}
GetPPException;
magick_info=GetMagickInfo(constImage()->magick,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
if ((magick_info != 0) && (*magick_info->description != '\0'))
return(std::string(magick_info->description));
- throwExceptionExplicit(CorruptImageWarning,"Unrecognized image magick type");
+ if (!_quiet)
+ throwExceptionExplicit(MagickCore::CorruptImageWarning,
+ "Unrecognized image magick type");
+
return(std::string());
}
text_string=std::string(text);
text=DestroyString(text);
}
- ThrowPPException;
+ ThrowImageException;
return(text_string);
}
if (constImage()->geometry)
return Geometry(constImage()->geometry);
- throwExceptionExplicit(OptionWarning,"Image does not contain a geometry");
+ if (!_quiet)
+ throwExceptionExplicit(MagickCore::OptionWarning,
+ "Image does not contain a geometry");
return(Geometry());
}
GetPPException;
(void) SetImageProfile(image(),"iptc",iptc_profile,exceptionInfo);
iptc_profile=DestroyStringInfo(iptc_profile);
- ThrowPPException;
+ ThrowImageException;
}
}
(void) SetImageProperty(image(),"Label",NULL,exceptionInfo);
if (label_.length() > 0)
(void) SetImageProperty(image(),"Label",label_.c_str(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
std::string Magick::Image::label(void) const
GetPPException;
value=GetImageProperty(constImage(),"Label",exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
if (value)
return(std::string(value));
SetImageMask(image(),mask_.constImage(),exceptionInfo);
else
SetImageMask(image(),(MagickCore::Image *) NULL,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
Magick::Image Magick::Image::mask(void) const
GetPPException;
image=GetImageMask(constImage(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
if (image == (MagickCore::Image *) NULL)
return(Magick::Image());
modifyImage();
GetPPException;
SetImageDepth(image(),depth_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
options()->depth(depth_);
}
GetPPException;
depth=GetImageDepth(constImage(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
return(depth);
}
if (constImage()->montage)
return Magick::Geometry(constImage()->montage);
- throwExceptionExplicit(CorruptImageWarning,
+ if (!_quiet)
+ throwExceptionExplicit(MagickCore::CorruptImageWarning,
"Image does not contain a montage");
return(Magick::Geometry());
return(constOptions()->quantizeTreeDepth());
}
+void Magick::Image::quiet(const bool quiet_)
+{
+ _quiet=quiet_;
+}
+
+bool Magick::Image::quiet(void) const
+{
+ return(_quiet);
+}
+
void Magick::Image::renderingIntent(
const Magick::RenderingIntent renderingIntent_)
{
GetPPException;
image=CloneImage(tmpTexture,0,0,MagickTrue,exceptionInfo);
texture.replaceImage(image);
- ThrowPPException;
+ ThrowImageException;
}
return(texture);
}
GetPPException;
colors=GetNumberColors(constImage(),0,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
return colors;
}
options()->type(type_);
GetPPException;
SetImageType(image(),type_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::verbose(const bool verboseFlag_)
modifyImage();
GetPPException;
SetImageVirtualPixelMethod(image(),virtualPixelMethod_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
Magick::VirtualPixelMethod Magick::Image::virtualPixelMethod(void) const
GetPPException;
newImage=AdaptiveBlurImage(constImage(),radius_,sigma_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::adaptiveResize(const Geometry &geometry_)
GetPPException;
newImage=AdaptiveResizeImage(constImage(),width,height,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::adaptiveSharpen(const double radius_,const double sigma_)
GetPPException;
newImage=AdaptiveSharpenImage(constImage(),radius_,sigma_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::adaptiveSharpenChannel(const ChannelType channel_,
newImage=AdaptiveSharpenImage(constImage(),radius_,sigma_,exceptionInfo);
RestorePPChannelMask;
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::adaptiveThreshold(const size_t width_,const size_t height_,
newImage=AdaptiveThresholdImage(constImage(),width_,height_,bias_,
exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::addNoise(const NoiseType noiseType_)
GetPPException;
newImage=AddNoiseImage(constImage(),noiseType_,1.0,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::addNoiseChannel(const ChannelType channel_,
newImage=AddNoiseImage(constImage(),noiseType_,1.0,exceptionInfo);
RestorePPChannelMask;
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::affineTransform(const DrawableAffine &affine_)
GetPPException;
newImage=AffineTransformImage(constImage(),&_affine,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::alpha(const unsigned int alpha_)
modifyImage();
GetPPException;
SetImageAlpha(image(),alpha_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::alphaChannel(AlphaChannelOption alphaOption_)
modifyImage();
GetPPException;
SetImageAlphaChannel(image(),alphaOption_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::annotate(const std::string &text_,
drawInfo->text=0;
drawInfo->geometry=0;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::annotate(const std::string &text_,
drawInfo->gravity=NorthWestGravity;
drawInfo->text=0;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::artifact(const std::string &name_,const std::string &value_)
modifyImage();
GetPPException;
SetImageProperty(image(),name_.c_str(),value_.c_str(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
std::string Magick::Image::attribute(const std::string name_)
GetPPException;
value=GetImageProperty(constImage(),name_.c_str(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
if (value)
return(std::string(value));
GetPPException;
(void) SyncImageSettings(imageInfo(),image(),exceptionInfo);
(void) AutoGammaImage(image(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::autoGammaChannel(const ChannelType channel_)
(void) SyncImageSettings(imageInfo(),image(),exceptionInfo);
(void) AutoGammaImage(image(),exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::autoLevel(void)
GetPPException;
(void) SyncImageSettings(imageInfo(),image(),exceptionInfo);
(void) AutoLevelImage(image(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::autoLevelChannel(const ChannelType channel_)
(void) SyncImageSettings(imageInfo(),image(),exceptionInfo);
(void) AutoLevelImage(image(),exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::autoOrient(void)
(void) SyncImageSettings(imageInfo(),image(),exceptionInfo);
newImage=AutoOrientImage(constImage(),image()->orientation,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::blackThreshold(const std::string &threshold_)
modifyImage();
GetPPException;
BlackThresholdImage(image(),threshold_.c_str(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::blackThresholdChannel(const ChannelType channel_,
SetPPChannelMask(channel_);
BlackThresholdImage(image(),threshold_.c_str(),exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::blueShift(const double factor_)
GetPPException;
newImage=BlueShiftImage(constImage(),factor_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::blur(const double radius_,const double sigma_)
GetPPException;
newImage=BlurImage(constImage(),radius_,sigma_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::blurChannel(const ChannelType channel_,
newImage=BlurImage(constImage(),radius_,sigma_,exceptionInfo);
RestorePPChannelMask;
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::border(const Geometry &geometry_)
newImage=BorderImage(constImage(),&borderInfo,image()->compose,
exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::brightnessContrast(const double brightness_,
modifyImage();
GetPPException;
BrightnessContrastImage(image(),brightness_,contrast_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::brightnessContrastChannel(const ChannelType channel_,
SetPPChannelMask(channel_);
BrightnessContrastImage(image(),brightness_,contrast_,exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::cannyEdge(const double radius_,const double sigma_,
newImage=CannyEdgeImage(constImage(),radius_,sigma_,lowerPercent_,
upperPercent_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::channel(const ChannelType channel_)
GetPPException;
newImage=SeparateImage(image(),channel_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::charcoal(const double radius_,const double sigma_)
GetPPException;
newImage=CharcoalImage(image(),radius_,sigma_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::chop(const Geometry &geometry_)
GetPPException;
newImage=ChopImage(image(),&chopInfo,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::chromaBluePrimary(const double x_,const double y_)
modifyImage();
GetPPException;
(void) ColorDecisionListImage(image(),cdl_.c_str(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::clamp(void)
modifyImage();
GetPPException;
ClampImage(image(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::clampChannel(const ChannelType channel_)
SetPPChannelMask(channel_);
ClampImage(image(),exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::clip(void)
modifyImage();
GetPPException;
ClipImage(image(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::clipPath(const std::string pathname_,const bool inside_)
GetPPException;
ClipImagePath(image(),pathname_.c_str(),(MagickBooleanType) inside_,
exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::clut(const Image &clutImage_,
modifyImage();
GetPPException;
ClutImage(image(),clutImage_.constImage(),method,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::clutChannel(const ChannelType channel_,
SetPPChannelMask(channel_);
ClutImage(image(),clutImage_.constImage(),method,exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::colorize(const unsigned int alpha_,const Color &penColor_)
target;
if (!penColor_.isValid())
- throwExceptionExplicit(OptionError,"Pen color argument is invalid");
+ throwExceptionExplicit(MagickCore::OptionError,
+ "Pen color argument is invalid");
FormatLocaleString(blend,MaxTextExtent,"%u/%u/%u",alphaRed_,alphaGreen_,
alphaBlue_);
GetPPException;
newImage=ColorizeImage(image(),blend,&target,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::colorMap(const size_t index_,const Color &color_)
imageptr=image();
if (index_ > (MaxColormapSize-1))
- throwExceptionExplicit(OptionError,
+ throwExceptionExplicit(MagickCore::OptionError,
"Colormap index must be less than MaxColormapSize");
if (!color_.isValid())
- throwExceptionExplicit(OptionError,"Color argument is invalid");
+ throwExceptionExplicit(MagickCore::OptionError,
+ "Color argument is invalid");
modifyImage();
{
if (!constImage()->colormap)
{
- throwExceptionExplicit(OptionError,"Image does not contain a colormap");
+ throwExceptionExplicit(MagickCore::OptionError,
+ "Image does not contain a colormap");
return(Color());
}
if (index_ > constImage()->colors-1)
- throwExceptionExplicit(OptionError,"Index out of range");
+ throwExceptionExplicit(MagickCore::OptionError,"Index out of range");
return(Magick::Color((constImage()->colormap)[index_]));
}
}
kernel_info=DestroyKernelInfo(kernel_info);
}
- ThrowPPException;
+ ThrowImageException;
}
bool Magick::Image::compare(const Image &reference_)
modifyImage();
ref.modifyImage();
status=static_cast<bool>(IsImagesEqual(image(),ref.image(),exceptionInfo));
- ThrowPPException;
+ ThrowImageException;
return(status);
}
GetPPException;
GetImageDistortion(image(),reference_.constImage(),metric_,&distortion,
exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
return(distortion);
}
GetImageDistortion(image(),reference_.constImage(),metric_,&distortion,
exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
return(distortion);
}
GetPPException;
newImage=CompareImages(image(),reference_.constImage(),metric_,distortion,
exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
if (newImage == (MagickCore::Image *) NULL)
return(Magick::Image());
else
newImage=CompareImages(image(),reference_.constImage(),metric_,distortion,
exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
if (newImage == (MagickCore::Image *) NULL)
return(Magick::Image());
else
GetPPException;
CompositeImage(image(),compositeImage_.constImage(),compose_,MagickTrue,
x,y,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::composite(const Image &compositeImage_,
GetPPException;
CompositeImage(image(),compositeImage_.constImage(),compose_,MagickTrue,
geometry.x,geometry.y,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::composite(const Image &compositeImage_,
GetPPException;
CompositeImage(image(),compositeImage_.constImage(),compose_,MagickTrue,
xOffset_,yOffset_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::connectedComponents(const size_t connectivity_)
GetPPException;
newImage=ConnectedComponentsImage(constImage(),connectivity_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::contrast(const size_t sharpen_)
modifyImage();
GetPPException;
ContrastImage(image(),(MagickBooleanType) sharpen_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::contrastStretch(const double blackPoint_,
modifyImage();
GetPPException;
ContrastStretchImage(image(),blackPoint_,whitePoint_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::contrastStretchChannel(const ChannelType channel_,
SetPPChannelMask(channel_);
ContrastStretchImage(image(),blackPoint_,whitePoint_,exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::convolve(const size_t order_,const double *kernel_)
replaceImage(newImage);
}
kernel_info=DestroyKernelInfo(kernel_info);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::crop(const Geometry &geometry_)
GetPPException;
newImage=CropImage(constImage(),&cropInfo,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::cycleColormap(const ssize_t amount_)
modifyImage();
GetPPException;
CycleColormapImage(image(),amount_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::decipher(const std::string &passphrase_)
modifyImage();
GetPPException;
DecipherImage(image(),passphrase_.c_str(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::defineSet(const std::string &magick_,
GetPPException;
newImage=DeskewImage(constImage(),threshold_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::despeckle(void)
GetPPException;
newImage=DespeckleImage(constImage(),exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
Magick::ImageType Magick::Image::determineType(void) const
GetPPException;
image_type=GetImageType(constImage(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
return(image_type);
}
{
GetPPException;
DisplayImages(imageInfo(),image(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::distort(const DistortImageMethod method_,
newImage=DistortImage(constImage(), method_,numberArguments_,arguments_,
bestfit_ == true ? MagickTrue : MagickFalse,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::draw(const Magick::Drawable &drawable_)
ClonePPDrawException(wand);
wand=DestroyDrawingWand(wand);
- ThrowPPDrawException;
+ ThrowPPDrawException(_quiet);
}
}
p != drawable_.end(); p++ )
{
p->operator()(wand);
- if (DrawGetExceptionType(wand) != UndefinedException)
+ if (DrawGetExceptionType(wand) != MagickCore::UndefinedException)
break;
}
- if (DrawGetExceptionType(wand) == UndefinedException)
+ if (DrawGetExceptionType(wand) == MagickCore::UndefinedException)
DrawRender(wand);
ClonePPDrawException(wand);
wand=DestroyDrawingWand(wand);
- ThrowPPDrawException;
+ ThrowPPDrawException(_quiet);
}
}
GetPPException;
newImage=EdgeImage(constImage(),radius_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::emboss(const double radius_,const double sigma_)
GetPPException;
newImage=EmbossImage(constImage(),radius_,sigma_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::encipher(const std::string &passphrase_)
modifyImage();
GetPPException;
EncipherImage(image(),passphrase_.c_str(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::enhance(void)
GetPPException;
newImage=EnhanceImage(constImage(),exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::equalize(void)
modifyImage();
GetPPException;
EqualizeImage(image(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::erase(void)
modifyImage();
GetPPException;
(void) SetImageBackgroundColor(image(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::extent(const Geometry &geometry_ )
GetPPException;
newImage=ExtentImage(image(),&extentInfo,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::extent(const Geometry &geometry_,
GetPPException;
newImage=FlipImage(constImage(),exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::floodFillAlpha(const ssize_t x_,const ssize_t y_,
FloodfillPaintImage(image(),options()->drawInfo(),&target,x_,y_,
(MagickBooleanType)invert_,exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::floodFillAlpha(const ssize_t x_,const ssize_t y_,
FloodfillPaintImage(image(),options()->drawInfo(),&target,x_,y_,
(MagickBooleanType)invert_,exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::floodFillColor(const Geometry &point_,
GetPPException;
newImage=FlopImage(constImage(),exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::fontTypeMetrics(const std::string &text_,
GetPPException;
GetTypeMetrics(image(),drawInfo,&(metrics->_typeMetric),exceptionInfo);
drawInfo->text=0;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::fontTypeMetricsMultiline(const std::string &text_,
GetPPException;
GetMultilineTypeMetrics(image(),drawInfo,&(metrics->_typeMetric),exceptionInfo);
drawInfo->text=0;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::frame(const Geometry &geometry_)
GetPPException;
newImage=FrameImage(constImage(),&info,image()->compose,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::frame(const size_t width_,const size_t height_,
GetPPException;
newImage=FrameImage(constImage(),&info,image()->compose,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::fx(const std::string expression_)
GetPPException;
newImage=FxImage(constImage(),expression_.c_str(),exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::fx(const std::string expression_,
newImage=FxImage(constImage(),expression_.c_str(),exceptionInfo);
RestorePPChannelMask;
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::gamma(const double gamma_)
modifyImage();
GetPPException;
GammaImage(image(),gamma_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::gamma(const double gammaRed_,const double gammaGreen_,
modifyImage();
GetPPException;
GammaImage(image(),atof(gamma),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::gaussianBlur(const double width_,const double sigma_)
GetPPException;
newImage=GaussianBlurImage(constImage(),width_,sigma_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::gaussianBlurChannel(const ChannelType channel_,
newImage=GaussianBlurImage(constImage(),width_,sigma_,exceptionInfo);
RestorePPChannelMask;
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
const Magick::Quantum *Magick::Image::getConstPixels(const ssize_t x_,
GetPPException;
p=(*GetVirtualPixels)(constImage(),x_, y_,columns_, rows_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
return(p);
}
result=GetVirtualMetacontent(constImage());
if(!result)
- throwExceptionExplicit(OptionError,"Unable to retrieve meta content.");
+ throwExceptionExplicit(MagickCore::OptionError,
+ "Unable to retrieve meta content.");
return(result);
}
result=GetAuthenticMetacontent(image());
if(!result)
- throwExceptionExplicit(OptionError,"Unable to retrieve meta content.");
+ throwExceptionExplicit(MagickCore::OptionError,
+ "Unable to retrieve meta content.");
return(result);
}
modifyImage();
GetPPException;
result=(*GetAuthenticPixels)(image(),x_, y_,columns_,rows_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
return(result);
}
modifyImage();
GetPPException;
(void) GrayscaleImage(image(),method_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::haldClut(const Image &clutImage_)
modifyImage();
GetPPException;
(void) HaldClutImage(image(),clutImage_.constImage(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::houghLine(const size_t width_,const size_t height_,
newImage=HoughLineImage(constImage(),width_,height_,threshold_,
exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::implode(const double factor_)
newImage=ImplodeImage(constImage(),factor_,image()->interpolate,
exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::inverseFourierTransform(const Image &phase_)
newImage=InverseFourierTransformImage(constImage(),phase_.constImage(),
magnitude_ == true ? MagickTrue : MagickFalse,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::kuwahara(const double radius_,const double sigma_)
GetPPException;
newImage=KuwaharaImage(constImage(),radius_,sigma_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::kuwaharaChannel(const ChannelType channel_,
newImage=KuwaharaImage(constImage(),radius_,sigma_,exceptionInfo);
replaceImage(newImage);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::level(const double blackPoint_,const double whitePoint_,
modifyImage();
GetPPException;
(void) LevelImage(image(),blackPoint_,whitePoint_,gamma_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::levelChannel(const ChannelType channel_,
SetPPChannelMask(channel_);
(void) LevelImage(image(),blackPoint_,whitePoint_,gamma_,exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::levelColors(const Color &blackColor_,
GetPPException;
(void) LevelImageColors(image(),&black,&white,invert_ == true ?
MagickTrue : MagickFalse,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::levelColorsChannel(const ChannelType channel_,
(void) LevelImageColors(image(),&black,&white,invert_ == true ?
MagickTrue : MagickFalse,exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::linearStretch(const double blackPoint_,
modifyImage();
GetPPException;
LinearStretchImage(image(),blackPoint_,whitePoint_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::liquidRescale(const Geometry &geometry_)
GetPPException;
newImage=LiquidRescaleImage(image(),width,height,x,y,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::magnify(void)
GetPPException;
newImage=MagnifyImage(constImage(),exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::map(const Image &mapImage_,const bool dither_)
options()->quantizeDither(dither_);
RemapImage(options()->quantizeInfo(),image(),mapImage_.constImage(),
exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::medianFilter(const double radius_)
newImage=StatisticImage(image(),MedianStatistic,(size_t) radius_,
(size_t) radius_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::minify(void)
GetPPException;
newImage=MinifyImage(constImage(),exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::modulate(const double brightness_,const double saturation_,
modifyImage();
GetPPException;
ModulateImage(image(),modulate,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
Magick::ImageMoments Magick::Image::moments(void)
{
- return(ImageMoments(constImage()));
+ return(ImageMoments(*this));
}
void Magick::Image::morphology(const MorphologyMethod method_,
GetPPException;
kernel=AcquireKernelInfo(kernel_.c_str(),exceptionInfo);
if (kernel == (KernelInfo *) NULL)
- throwExceptionExplicit(OptionError,"Unable to parse kernel.");
+ throwExceptionExplicit(MagickCore::OptionError,"Unable to parse kernel.");
newImage=MorphologyImage(constImage(),method_,iterations_,kernel,
exceptionInfo);
replaceImage(newImage);
kernel=DestroyKernelInfo(kernel);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::morphology(const MorphologyMethod method_,
option=CommandOptionToMnemonic(MagickKernelOptions,kernel_);
if (option == (const char *)NULL)
- throwExceptionExplicit(OptionError,"Unable to determine kernel type.");
+ throwExceptionExplicit(MagickCore::OptionError,
+ "Unable to determine kernel type.");
kernel=std::string(option);
if (!arguments_.empty())
GetPPException;
kernel=AcquireKernelInfo(kernel_.c_str(),exceptionInfo);
if (kernel == (KernelInfo *)NULL)
- throwExceptionExplicit(OptionError,"Unable to parse kernel.");
+ throwExceptionExplicit(MagickCore::OptionError,"Unable to parse kernel.");
SetPPChannelMask(channel_);
newImage=MorphologyImage(constImage(),method_,iterations_,kernel,
exceptionInfo);
RestorePPChannelMask;
replaceImage(newImage);
kernel=DestroyKernelInfo(kernel);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::morphologyChannel(const ChannelType channel_,
option=CommandOptionToMnemonic(MagickKernelOptions,kernel_);
if (option == (const char *)NULL)
- throwExceptionExplicit(OptionError,"Unable to determine kernel type.");
+ throwExceptionExplicit(MagickCore::OptionError,
+ "Unable to determine kernel type.");
kernel=std::string(option);
if (!arguments_.empty())
GetPPException;
newImage=MotionBlurImage(constImage(),radius_,sigma_,angle_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::negate(const bool grayscale_)
modifyImage();
GetPPException;
NegateImage(image(),(MagickBooleanType) grayscale_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::negateChannel(const ChannelType channel_,
SetPPChannelMask(channel_);
NegateImage(image(),(MagickBooleanType) grayscale_,exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::normalize(void)
modifyImage();
GetPPException;
NormalizeImage(image(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::oilPaint(const double radius_,const double sigma_)
GetPPException;
newImage=OilPaintImage(constImage(),radius_,sigma_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::opaque(const Color &opaqueColor_,const Color &penColor_,
pen;
if (!opaqueColor_.isValid())
- throwExceptionExplicit(OptionError,"Opaque color argument is invalid");
+ throwExceptionExplicit(MagickCore::OptionError,
+ "Opaque color argument is invalid");
if (!penColor_.isValid())
- throwExceptionExplicit(OptionError,"Pen color argument is invalid");
+ throwExceptionExplicit(MagickCore::OptionError,
+ "Pen color argument is invalid");
modifyImage();
opaqueColor=opaqueColor_;
exceptionInfo);
OpaquePaintImage(image(),&opaque,&pen,invert_ ? MagickTrue : MagickFalse,
exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::orderedDither(std::string thresholdMap_)
modifyImage();
GetPPException;
(void) OrderedPosterizeImage(image(),thresholdMap_.c_str(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::orderedDitherChannel(const ChannelType channel_,
SetPPChannelMask(channel_);
(void) OrderedPosterizeImage(image(),thresholdMap_.c_str(),exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::perceptible(const double epsilon_)
modifyImage();
GetPPException;
PerceptibleImage(image(),epsilon_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::perceptibleChannel(const ChannelType channel_,
SetPPChannelMask(channel_);
PerceptibleImage(image(),epsilon_,exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
Magick::ImagePerceptualHash Magick::Image::perceptualHash()
{
- return(ImagePerceptualHash(constImage()));
+ return(ImagePerceptualHash(*this));
}
void Magick::Image::ping(const std::string &imageSpec_)
// Test arguments to ensure they are within the image.
if (y_ > (ssize_t) rows() || x_ > (ssize_t) columns())
- throwExceptionExplicit(OptionError,"Access outside of image boundary");
+ throwExceptionExplicit(MagickCore::OptionError,
+ "Access outside of image boundary");
modifyImage();
newImage=PolaroidImage(constImage(),options()->drawInfo(),caption_.c_str(),
angle_,method_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::posterize(const size_t levels_,const DitherMethod method_)
modifyImage();
GetPPException;
PosterizeImage(image(),levels_,method_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::posterizeChannel(const ChannelType channel_,
SetPPChannelMask(channel_);
PosterizeImage(image(),levels_,method_,exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::process(std::string name_,const ssize_t argc,
GetPPException;
(void) InvokeDynamicImageFilter(name_.c_str(),&image(),argc,argv,
exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::profile(const std::string name_,
GetPPException;
(void) ProfileImage(image(),name_.c_str(),(unsigned char *)profile_.data(),
profile_.length(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
Magick::Blob Magick::Image::profile(const std::string name_) const
GetPPException;
QuantizeImage(options()->quantizeInfo(),image(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::quantumOperator(const ChannelType channel_,
SetPPChannelMask(channel_);
EvaluateImage(image(),operator_,rvalue_,exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::quantumOperator(const ssize_t x_,const ssize_t y_,
BlendPixelTrait ? OverCompositeOp : CopyCompositeOp,MagickFalse,
geometry.x,geometry.y,exceptionInfo );
cropImage=DestroyImageList(cropImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::raise(const Geometry &geometry_,const bool raisedFlag_)
modifyImage();
RaiseImage(image(),&raiseInfo,raisedFlag_ == true ? MagickTrue : MagickFalse,
exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::randomThreshold(const Geometry &thresholds_)
GetPPException;
(void) RandomThresholdImage(image(),static_cast<std::string>(
thresholds_).c_str(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::randomThresholdChannel(const ChannelType channel_,
(void) RandomThresholdImage(image(),static_cast<std::string>(
thresholds_).c_str(),exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::read(const Blob &blob_)
newImage=ConstituteImage(width_,height_,map_.c_str(),type_, pixels_,
exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::read(const std::string &imageSpec_)
ImportQuantumPixels(image(),(MagickCore::CacheView *) NULL,quantum_info,
quantum_,source_,exceptionInfo);
quantum_info=DestroyQuantumInfo(quantum_info);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::reduceNoise(void)
newImage=StatisticImage(constImage(),NonpeakStatistic,(size_t) order_,
(size_t) order_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::resample(const Point &density_)
newImage=ResampleImage(constImage(),density_.x(),density_.y(),
image()->filter,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::resize(const Geometry &geometry_)
newImage=ResizeImage(constImage(),width,height,image()->filter,
exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::roll(const Geometry &roll_)
GetPPException;
newImage=RollImage(constImage(),roll_.xOff(),roll_.yOff(),exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::roll(const size_t columns_,const size_t rows_)
newImage=RollImage(constImage(),static_cast<ssize_t>(columns_),
static_cast<ssize_t>(rows_),exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::rotate(const double degrees_)
GetPPException;
newImage=RotateImage(constImage(),degrees_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::rotationalBlur(const double angle_)
GetPPException;
newImage=RotationalBlurImage(constImage(),angle_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::rotationalBlurChannel(const ChannelType channel_,
newImage=RotationalBlurImage(constImage(),angle_,exceptionInfo);
RestorePPChannelMask;
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::sample(const Geometry &geometry_)
GetPPException;
newImage=SampleImage(constImage(),width,height,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::scale(const Geometry &geometry_)
GetPPException;
newImage=ScaleImage(constImage(),width,height,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::segment(const double clusterThreshold_,
(MagickBooleanType) options()->verbose(),clusterThreshold_,
smoothingThreshold_,exceptionInfo);
SyncImage(image(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::selectiveBlur(const double radius_,const double sigma_,
newImage=SelectiveBlurImage(constImage(),radius_,sigma_,threshold_,
exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::selectiveBlurChannel(const ChannelType channel_,
exceptionInfo);
RestorePPChannelMask;
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
Magick::Image Magick::Image::separate(const ChannelType channel_)
GetPPException;
image=SeparateImage(constImage(),channel_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
if (image == (MagickCore::Image *) NULL)
return(Magick::Image());
else
GetPPException;
newImage=SepiaToneImage(constImage(),threshold_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
Magick::Quantum *Magick::Image::setPixels(const ssize_t x_,const ssize_t y_,
modifyImage();
GetPPException;
result=(*QueueAuthenticPixels)(image(),x_,y_,columns_,rows_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
return(result);
}
newImage=ShadeImage(constImage(),colorShading_ == true ?
MagickTrue : MagickFalse,azimuth_,elevation_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::shadow(const double percent_opacity_,const double sigma_,
newImage=ShadowImage(constImage(),percent_opacity_, sigma_,x_, y_,
exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::sharpen(const double radius_,const double sigma_)
GetPPException;
newImage=SharpenImage(constImage(),radius_,sigma_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::sharpenChannel(const ChannelType channel_,
newImage=SharpenImage(constImage(),radius_,sigma_,exceptionInfo);
RestorePPChannelMask;
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::shave(const Geometry &geometry_)
GetPPException;
newImage=ShaveImage(constImage(),&shaveInfo,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::shear(const double xShearAngle_,const double yShearAngle_)
GetPPException;
newImage=ShearImage(constImage(),xShearAngle_,yShearAngle_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::sigmoidalContrast(const size_t sharpen_,
GetPPException;
(void) SigmoidalContrastImage(image(),(MagickBooleanType) sharpen_,contrast,
midpoint,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
std::string Magick::Image::signature(const bool force_) const
GetPPException;
newImage=SketchImage(constImage(),radius_,sigma_,angle_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::solarize(const double factor_)
modifyImage();
GetPPException;
SolarizeImage(image(),factor_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::sparseColor(const ChannelType channel_,
exceptionInfo);
RestorePPChannelMask;
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::splice(const Geometry &geometry_)
GetPPException;
newImage=SpliceImage(constImage(),&spliceInfo,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::spread(const size_t amount_)
newImage=SpreadImage(constImage(),amount_,image()->interpolate,
exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
Magick::ImageStatistics Magick::Image::statistics()
{
- return(ImageStatistics(constImage()));
+ return(ImageStatistics(*this));
}
void Magick::Image::stegano(const Image &watermark_)
GetPPException;
newImage=SteganoImage(constImage(),watermark_.constImage(),exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::stereo(const Image &rightImage_)
GetPPException;
newImage=StereoImage(constImage(),rightImage_.constImage(),exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::strip(void)
modifyImage();
GetPPException;
StripImage(image(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
Magick::Image Magick::Image::subImageSearch(const Image &reference_,
GetPPException;
newImage=SimilarityImage(image(),reference_.constImage(),metric_,
similarityThreshold,&offset,similarityMetric_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
if (offset_ != (Geometry *) NULL)
*offset_=offset;
if (newImage == (MagickCore::Image *) NULL)
newImage=SwirlImage(constImage(),degrees_,image()->interpolate,
exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::syncPixels(void)
{
GetPPException;
(void) (*SyncAuthenticPixels)(image(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::texture(const Image &texture_)
modifyImage();
GetPPException;
TextureImage(image(),texture_.constImage(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::threshold(const double threshold_)
modifyImage();
GetPPException;
BilevelImage(image(),threshold_,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::thumbnail(const Geometry &geometry_)
GetPPException;
newImage=ThumbnailImage(constImage(),width,height,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::tint(const std::string opacity_)
color=static_cast<PixelInfo>(constOptions()->fillColor());
newImage=TintImage(constImage(),opacity_.c_str(),&color,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::transform(const Geometry &imageGeometry_)
GetPPException;
TransformImage(&(image()),0,std::string(imageGeometry_).c_str(),
exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::transform(const Geometry &imageGeometry_,
GetPPException;
TransformImage(&(image()),std::string(cropGeometry_).c_str(),std::string(
imageGeometry_).c_str(), exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::transformOrigin(const double x_,const double y_)
color;
if (!color_.isValid())
- throwExceptionExplicit(OptionError,"Color argument is invalid");
+ throwExceptionExplicit(MagickCore::OptionError,
+ "Color argument is invalid");
color=color_;
GetPPException;
modifyImage();
TransparentPaintImage(image(),&target,TransparentAlpha,MagickFalse,
exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::transparentChroma(const Color &colorLow_,
targetLow;
if (!colorLow_.isValid() || !colorHigh_.isValid())
- throwExceptionExplicit(OptionError,"Color argument is invalid");
+ throwExceptionExplicit(MagickCore::OptionError,
+ "Color argument is invalid");
colorLow=colorLow_;
colorHigh=colorHigh_;
modifyImage();
TransparentPaintImageChroma(image(),&targetLow,&targetHigh,TransparentAlpha,
MagickFalse,exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::transpose(void)
GetPPException;
newImage=TransposeImage(constImage(),exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::transverse(void)
GetPPException;
newImage=TransverseImage(constImage(),exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::trim(void)
GetPPException;
newImage=TrimImage(constImage(),exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
Magick::Image Magick::Image::uniqueColors(void)
GetPPException;
image=UniqueImageColors(constImage(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
if (image == (MagickCore::Image *) NULL)
return(Magick::Image());
else
newImage=UnsharpMaskImage(constImage(),radius_,sigma_,amount_,threshold_,
exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::unsharpmaskChannel(const ChannelType channel_,
exceptionInfo);
RestorePPChannelMask;
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::vignette(const double radius_,const double sigma_,
GetPPException;
newImage=VignetteImage(constImage(),radius_,sigma_,x_,y_,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::wave(const double amplitude_,const double wavelength_)
newImage=WaveImage(constImage(),amplitude_,wavelength_,image()->interpolate,
exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::whiteThreshold(const std::string &threshold_)
modifyImage();
GetPPException;
WhiteThresholdImage(image(),threshold_.c_str(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::whiteThresholdChannel(const ChannelType channel_,
SetPPChannelMask(channel_);
WhiteThresholdImage(image(),threshold_.c_str(),exceptionInfo);
RestorePPChannelMask;
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::write(Blob *blob_)
data=ImagesToBlob(constImageInfo(),image(),&length,exceptionInfo);
if (length > 0)
blob_->updateNoCopy(data,length,Blob::MallocAllocator);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::write(Blob *blob_,const std::string &magick_)
data=ImagesToBlob(constImageInfo(),image(),&length,exceptionInfo);
if (length > 0)
blob_->updateNoCopy(data,length,Blob::MallocAllocator);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::write(Blob *blob_,const std::string &magick_,
data=ImagesToBlob(constImageInfo(),image(),&length,exceptionInfo);
if (length > 0)
blob_->updateNoCopy(data,length,Blob::MallocAllocator);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::write(const ssize_t x_,const ssize_t y_,
GetPPException;
ExportImagePixels(image(),x_,y_,columns_,rows_,map_.c_str(),type_,pixels_,
exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::write(const std::string &imageSpec_)
fileName(imageSpec_);
GetPPException;
WriteImage(constImageInfo(),image(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::writePixels(const Magick::QuantumType quantum_,
ExportQuantumPixels(image(),(MagickCore::CacheView *) NULL,quantum_info,
quantum_,destination_, exceptionInfo);
quantum_info=DestroyQuantumInfo(quantum_info);
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::zoom(const Geometry &geometry_)
GetPPException;
newImage=ResizeImage(constImage(),width,height,image()->filter,exceptionInfo);
replaceImage(newImage);
- ThrowPPException;
+ ThrowImageException;
}
Magick::Image::Image(MagickCore::Image *image_)
- : _imgRef(new ImageRef(image_))
+ : _imgRef(new ImageRef(image_)),
+ _quiet(false)
{
}
GetPPException;
replaceImage(CloneImage(image(),0,0,MagickTrue,exceptionInfo));
- ThrowPPException;
+ ThrowImageException;
}
MagickCore::Image *Magick::Image::replaceImage(MagickCore::Image *replacement_)
{
GetPPException;
image=AcquireImage(constImageInfo(),exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
// We can replace the image if we own it.
image == (MagickCore::Image *) NULL)
{
(void) MagickCore::DestroyExceptionInfo(exceptionInfo);
- throwExceptionExplicit(ImageWarning,"No image was loaded.");
+ if (!_quiet)
+ throwExceptionExplicit(MagickCore::ImageWarning,
+ "No image was loaded.");
}
- ThrowPPException;
+ ThrowImageException;
}
void Magick::Image::floodFill(const ssize_t x_,const ssize_t y_,
GetPPException;
fillPattern=CloneImage(options()->fillPattern(),0,0,MagickTrue,
exceptionInfo);
- ThrowPPException;
+ ThrowImageException;
}
if (fillPattern_ == (Magick::Image *)NULL)
options()->fillColor(fillColor);
options()->fillPattern(fillPattern);
- ThrowPPException;
+ ThrowImageException;
}