]> granicus.if.org Git - imagemagick/commitdiff
Added extra overloads for the splice method of Magick++.
authordirk <dirk@git.imagemagick.org>
Fri, 15 May 2015 12:09:29 +0000 (12:09 +0000)
committerdirk <dirk@git.imagemagick.org>
Fri, 15 May 2015 12:09:29 +0000 (12:09 +0000)
Magick++/lib/Image.cpp
Magick++/lib/Magick++/Image.h

index 2a79b8b9087c1bf01f2608ba6e5ad9b85c9673d6..37db1fed0787ef2feed4d62bd9986d92f7d9f8d1 100644 (file)
@@ -4329,6 +4329,21 @@ void Magick::Image::splice(const Geometry &geometry_)
   ThrowImageException;
 }
 
+void Magick::Image::splice(const Geometry &geometry_,
+  const Color &backgroundColor_)
+{
+  backgroundColor(backgroundColor_);
+  splice(geometry_);
+}
+
+void Magick::Image::splice(const Geometry &geometry_,
+  const Color &backgroundColor_,const GravityType gravity_)
+{
+  backgroundColor(backgroundColor_);
+  image()->gravity=gravity_;
+  splice(geometry_);
+}
+
 void Magick::Image::spread(const size_t amount_)
 {
   MagickCore::Image
index e4ca81943f5d883e2e48afb7f082d3335972dc36..772f148c7a06819cbb4cbd70d99550d77432156f 100644 (file)
@@ -1307,6 +1307,9 @@ namespace Magick
 
     // Splice the background color into the image.
     void splice(const Geometry &geometry_);
+    void splice(const Geometry &geometry_,const Color &backgroundColor_);
+    void splice(const Geometry &geometry_,const Color &backgroundColor_,
+      const GravityType gravity_);
 
     // Spread pixels randomly within image by specified ammount
     void spread(const size_t amount_=3);