mirror of
https://github.com/Intervention/image.git
synced 2025-08-30 09:10:21 +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);
|
imagesettile($this->resource, $color->resource);
|
||||||
$color = IMG_COLOR_TILED;
|
$color = IMG_COLOR_TILED;
|
||||||
|
|
||||||
|
} elseif (is_resource($color)) {
|
||||||
|
|
||||||
|
// fill with image resource
|
||||||
|
imagesettile($this->resource, $color);
|
||||||
|
$color = IMG_COLOR_TILED;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// fill with color
|
// fill with color
|
||||||
|
Reference in New Issue
Block a user