void Magick::Image::antiAlias(const bool flag_)
{
modifyImage();
- options()->antiAlias(static_cast<size_t>(flag_));
+ options()->antiAlias(flag_);
}
-bool Magick::Image::antiAlias(void)
+bool Magick::Image::antiAlias(void) const
{
- return(static_cast<bool>(options()->antiAlias()));
+ return(constOptions()->antiAlias());
}
void Magick::Image::animationDelay(const size_t delay_)
(void) SetImageArtifact(image(),name_.c_str(),value_.c_str());
}
-std::string Magick::Image::artifact(const std::string &name_)
+std::string Magick::Image::artifact(const std::string &name_) const
{
const char
*value;
ThrowImageException;
}
-std::string Magick::Image::attribute(const std::string name_)
+std::string Magick::Image::attribute(const std::string name_) const
{
const char
*value;
GetPPException;
modifyImage();
- ref.modifyImage();
- status=static_cast<bool>(IsImagesEqual(image(),ref.image(),exceptionInfo));
+ status=static_cast<bool>(IsImagesEqual(image(),ref.constImage(),
+ exceptionInfo));
ThrowImageException;
return(status);
}
ThrowImageException;
}
-Magick::ImageMoments Magick::Image::moments(void)
+Magick::ImageMoments Magick::Image::moments(void) const
{
return(ImageMoments(*this));
}
ThrowImageException;
}
- Magick::ImagePerceptualHash Magick::Image::perceptualHash()
+ Magick::ImagePerceptualHash Magick::Image::perceptualHash() const
{
return(ImagePerceptualHash(*this));
}
ThrowImageException;
}
-Magick::Image Magick::Image::separate(const ChannelType channel_)
+Magick::Image Magick::Image::separate(const ChannelType channel_) const
{
MagickCore::Image
*image;
ThrowImageException;
}
-Magick::ImageStatistics Magick::Image::statistics()
+Magick::ImageStatistics Magick::Image::statistics() const
{
return(ImageStatistics(*this));
}
ThrowImageException;
}
-Magick::Image Magick::Image::uniqueColors(void)
+Magick::Image Magick::Image::uniqueColors(void) const
{
MagickCore::Image
*image;
// Anti-alias Postscript and TrueType fonts (default true)
void antiAlias(const bool flag_);
- bool antiAlias(void);
+ bool antiAlias(void) const;
// Time in 1/100ths of a second which must expire before
// displaying the next image in an animated sequence.
void artifact(const std::string &name_,const std::string &value_);
// Returns the value of the artifact with the specified name.
- std::string artifact(const std::string &name_);
+ std::string artifact(const std::string &name_) const;
// Access/Update a named image attribute
void attribute(const std::string name_,const std::string value_);
- std::string attribute(const std::string name_);
+ std::string attribute(const std::string name_) const;
// Extracts the 'mean' from the image and adjust the image to try
// make set its gamma appropriatally.
const double hue_);
// Returns the normalized moments of one or more image channels.
- ImageMoments moments(void);
+ ImageMoments moments(void) const;
// Applies a kernel to the image according to the given mophology method.
void morphology(const MorphologyMethod method_,const std::string kernel_,
void perceptibleChannel(const ChannelType channel_,const double epsilon_);
// Returns the perceptual hash for this image.
- Magick::ImagePerceptualHash perceptualHash();
+ Magick::ImagePerceptualHash perceptualHash() const;
// Ping is similar to read except only enough of the image is read
// to determine the image columns, rows, and filesize. Access the
const double sigma_,const double threshold_);
// Separates a channel from the image and returns it as a grayscale image.
- Image separate(const ChannelType channel_);
+ Image separate(const ChannelType channel_) const;
// Applies a special effect to the image, similar to the effect achieved in
// a photo darkroom by sepia toning. Threshold ranges from 0 to
void spread(const size_t amount_=3);
// Returns the statistics for this image.
- Magick::ImageStatistics statistics();
+ Magick::ImageStatistics statistics() const;
// Add a digital watermark to the image (based on second image)
void stegano(const Image &watermark_);
void trim(void);
// Returns the unique colors of an image.
- Image uniqueColors(void);
+ Image uniqueColors(void) const;
// Replace image with a sharpened version of the original image
// using the unsharp mask algorithm.