Toggle navigation
Hot Examples
JP
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
検索
Home
Grafika
EditorInterface
resizeFit
Grafika\EditorInterface::resizeFit PHP Method
EditorInterface Interface Documentation
ファイルを表示
Open project: kosinix/grafika
resizeFit()
public
method
Resize an image to fit within the given width and height. The re-sized image will not exceed the given dimension. Useful if you want to preserve the aspect ratio.
public
resizeFit
(
grafika\ImageInterface
&
$image
,
integer
$newWidth
,
integer
$newHeight
) :
grafika\EditorInterface
$image
grafika\ImageInterface
Instance of Image.
$newWidth
integer
Width in pixels.
$newHeight
integer
Width in pixels.
return
grafika\EditorInterface
An instance of Editor.
public function resizeFit(&$image, $newWidth, $newHeight);
EditorInterface
apply
blend
compare
crop
draw
equal
fill
flatten
flip
free
isAvailable
opacity
open
resize
resizeExact
resizeExactHeight
resizeExactWidth
resizeFill
resizeFit
rotate
save
text