From 505f7b764e929fa04050f49df97903fba0d8826b Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 5 Mar 2017 10:27:39 -0500 Subject: [PATCH] ... --- Magick++/lib/Image.cpp | 8 ++++++++ Magick++/lib/Magick++/Image.h | 1 + 2 files changed, 9 insertions(+) diff --git a/Magick++/lib/Image.cpp b/Magick++/lib/Image.cpp index 52de0a0bf..8e18fd12f 100644 --- a/Magick++/lib/Image.cpp +++ b/Magick++/lib/Image.cpp @@ -1970,6 +1970,14 @@ std::string Magick::Image::artifact(const std::string &name_) const return(std::string()); } +void Magick::Image::attribute(const std::string name_,const char *value_) +{ + modifyImage(); + GetPPException; + SetImageProperty(image(),name_.c_str(),value_,exceptionInfo); + ThrowImageException; +} + void Magick::Image::attribute(const std::string name_,const std::string value_) { modifyImage(); diff --git a/Magick++/lib/Magick++/Image.h b/Magick++/lib/Magick++/Image.h index 68bb56db0..835f3f660 100644 --- a/Magick++/lib/Magick++/Image.h +++ b/Magick++/lib/Magick++/Image.h @@ -624,6 +624,7 @@ namespace Magick std::string artifact(const std::string &name_) const; // Access/Update a named image attribute + void attribute(const std::string name_,const char *value_); void attribute(const std::string name_,const std::string value_); std::string attribute(const std::string name_) const; -- 2.40.0