Grafika\EditorInterface::resize PHP Method

resize() public method

Wrapper function for the resizeXXX family of functions. Resize an image to a given width, height and mode.
public resize ( grafika\ImageInterface &$image, integer $newWidth, integer $newHeight, string $mode = 'fit' ) : grafika\EditorInterface
$image grafika\ImageInterface Instance of Image.
$newWidth integer Width in pixels.
$newHeight integer Height in pixels.
$mode string Resize mode. Possible values: "exact", "exactHeight", "exactWidth", "fill", "fit".
return grafika\EditorInterface An instance of Editor.
    public function resize(&$image, $newWidth, $newHeight, $mode = 'fit');