Grafika\EditorInterface::resize PHP 메소드

resize() 공개 메소드

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".
리턴 grafika\EditorInterface An instance of Editor.
    public function resize(&$image, $newWidth, $newHeight, $mode = 'fit');