(void) DestroyExceptionInfo( &exceptionInfo );
}
+// Charcoal-effect image
+void Magick::Image::shadow( const double percent_opacity_, const double sigma_,
+ const ssize_t x_, const ssize_t y_ )
+{
+ ExceptionInfo exceptionInfo;
+ GetExceptionInfo( &exceptionInfo );
+ MagickCore::Image* newImage = ShadowImage( image(), percent_opacity_, sigma_,
+ image()->bias, x_, y_, &exceptionInfo );
+ replaceImage( newImage );
+ throwException( exceptionInfo );
+ (void) DestroyExceptionInfo( &exceptionInfo );
+}
+
// Sharpen pixels in image
void Magick::Image::sharpen ( const double radius_, const double sigma_ )
{
const double elevation_ = 30,
const bool colorShading_ = false );
+ // simulate an image shadow
+ void shadow ( const double radius_ = 0.0,
+ const double sigma_ = 1.0,
+ const ssize_t x_ = 0,
+ const ssize_t y_ = 0 );
+
// Sharpen pixels in image
// The radius_ parameter specifies the radius of the Gaussian, in
// pixels, not counting the center pixel. The sigma_ parameter
using MagickCore::SetPixelChannelMask;
using MagickCore::SetStringInfoDatum;
using MagickCore::ShadeImage;
+ using MagickCore::ShadowImage;
using MagickCore::SharpenImage;
using MagickCore::SharpenImage;
using MagickCore::ShaveImage;
bool _colorShading;
};
+ // Shadow effect image (simulate an image shadow)
+ class MagickPPExport shadowImage : public std::unary_function<Image&,void>
+ {
+ public:
+ shadowImage( const double percent_opacity_ = 80, const double sigma_ = 0.5,
+ const ssize_t x_ = 5, const ssize_t y_ = 5 );
+
+ void operator()( Image &image_ ) const;
+
+ private:
+ double _percent_opacity;
+ double _sigma;
+ ssize_t _x;
+ ssize_t _y;
+ };
+
// Sharpen pixels in image
class MagickPPExport sharpenImage : public std::unary_function<Image&,void>
{