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:
@@ -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
|
||||
|
Reference in New Issue
Block a user