Create a blank image with of given dimensions and fill it with $bgColor.
public static create ( integer $width, integer $height, string $bgColor = null ) : Webiny\Component\Image\ImageInterface | ||
$width | integer | Width of the new image. |
$height | integer | Height of the new image. |
$bgColor | string | Background color. Following formats are acceptable - "fff" - "ffffff" - array(255,255,255) |
Результат | Webiny\Component\Image\ImageInterface |