public __construct ( null | string $filename = null, integer $width = null, integer | null $height = null, null | string $color = null ) : SimpleImage | ||
$filename | null | string | Path to image file (may be omitted to create image from scratch) |
$width | integer | Image width (is used for creating image from scratch) |
$height | integer | null | If omitted - assumed equal to $width (is used for creating image from scratch) |
$color | null | string | Hex color string, array(red, green, blue) or array(red, green, blue, alpha).
Where red, green, blue - integers 0-255, alpha - integer 0-127 (is used for creating image from scratch) |
return | SimpleImage |