Grafika\EditorInterface::resizeFill PHP Method

resizeFill() public method

Resize image to fill all the space in the given dimension. Excess parts are cropped.
public resizeFill ( grafika\ImageInterface &$image, integer $newWidth, integer $newHeight ) : grafika\EditorInterface
$image grafika\ImageInterface Instance of Image.
$newWidth integer Width in pixels.
$newHeight integer Height in pixels.
return grafika\EditorInterface An instance of Editor.
    public function resizeFill(&$image, $newWidth, $newHeight);