fitImage()
function fitImage( box, naturalWidth, naturalHeight, fit): FitBox;Computes where an image of the given natural size is drawn inside a box.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
box |
FitBox |
naturalWidth |
number |
naturalHeight |
number |
fit |
"none" | "contain" | "cover" | "fill" |
Returns
Section titled “Returns”FitBox