Commit 9fae96fc authored by cristy's avatar cristy

--no commit message

--no commit message
parent 78096b41
......@@ -475,6 +475,21 @@ void Magick::Image::annotate ( const std::string &text_,
throwImageException();
}
void Magick::Image::artifact ( const std::string &name_,
const std::string &value_ )
{
modifyImage();
(void) SetImageArtifact ( image(), name_.c_str(), value_.c_str() );
}
std::string Magick::Image::artifact ( const std::string &name_ )
{
const char *value = GetImageArtifact ( image(), name_.c_str() );
if (value)
return std::string( value );
return std::string( );
}
// Blur image
void Magick::Image::blur( const double radius_, const double sigma_ )
{
......
......@@ -162,7 +162,14 @@ namespace Magick
// gravity.
void annotate ( const std::string &text_,
const GravityType gravity_ );
// Inserts the artifact with the specified name and value into
// the artifact tree of the image.
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_ );
// Blur image with specified blur factor
// The radius_ parameter specifies the radius of the Gaussian, in
// pixels, not counting the center pixel. The sigma_ parameter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment