diff --git a/reference/imagick/figures/floodfillpaint_intermediate.png b/reference/imagick/figures/floodfillpaint_intermediate.png
new file mode 100644
index 0000000000..2e9cb81cd6
Binary files /dev/null and b/reference/imagick/figures/floodfillpaint_intermediate.png differ
diff --git a/reference/imagick/figures/floodfillpaint_result.png b/reference/imagick/figures/floodfillpaint_result.png
new file mode 100644
index 0000000000..1962c91e8e
Binary files /dev/null and b/reference/imagick/figures/floodfillpaint_result.png differ
diff --git a/reference/imagick/imagick/floodfillpaintimage.xml b/reference/imagick/imagick/floodfillpaintimage.xml
index 6b61b634af..dbeff2a443 100644
--- a/reference/imagick/imagick/floodfillpaintimage.xml
+++ b/reference/imagick/imagick/floodfillpaintimage.xml
@@ -12,7 +12,7 @@
boolImagick::floodFillPaintImage
mixedfill
floatfuzz
- mixedbordercolor
+ mixedtarget
intx
inty
boolinvert
@@ -48,10 +48,10 @@
- bordercolor
+ target
- ImagickPixel object or a string containing the border color. This is the target color to paint.
+ ImagickPixel object or a string containing the target color to paint
@@ -98,6 +98,59 @@
+
+ &reftitle.examples;
+
+
+ Imagick::floodfillPaintImage example
+
+newImage(100, 50, "red");
+$im->newImage(100, 50, "green");
+$im->newImage(100, 50, "blue");
+
+/* Append the images into one */
+$im->resetIterator();
+$combined = $im->appendImages(true);
+
+/* Save the intermediate image for comparison */
+$combined->writeImage("floodfillpaint_intermediate.png");
+
+/* The target pixel to paint */
+$x = 1;
+$y = 1;
+
+/* Get the color we are painting */
+$target = $combined->getImagePixelColor($x, $y);
+
+/* Paints pixel in position 1,1 black and all neighboring
+ pixels that match the target color */
+$combined->floodfillPaintImage("black", 1, $target, $x, $y, false);
+
+/* Save the result */
+$combined->writeImage("floodfillpaint_result.png");
+?>
+]]>
+
+ &example.outputs.similar;
+
+
+
+
+
+
+
+
+
+
+
+