1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-29 16:50:07 +02:00

added possibility to fill with gd resource

This commit is contained in:
Oliver Vogel
2013-03-19 20:27:54 +01:00
parent 155f79dd3d
commit 7bf5960df4

View File

@@ -788,6 +788,12 @@ class Image
imagesettile($this->resource, $color->resource);
$color = IMG_COLOR_TILED;
} elseif (is_resource($color)) {
// fill with image resource
imagesettile($this->resource, $color);
$color = IMG_COLOR_TILED;
} else {
// fill with color