API - XOOPS 2.5.11 Beta 2
By monxoops.fr
Resize Class Reference

Public Member Functions

 execute ($img, $width, $height, $fit, $scale)
 

Protected Member Functions

 prepareDimensions ($img, $width, $height, $fit)
 

Member Function Documentation

◆ execute()

execute (   $img,
  $width,
  $height,
  $fit,
  $scale 
)

Returns a resized image

Parameters
\WideImage\Image$img
smart_coordinate$width
smart_coordinate$height
string$fit
string$scale
Returns
\WideImage\Image
Here is the call graph for this function:

◆ prepareDimensions()

prepareDimensions (   $img,
  $width,
  $height,
  $fit 
)
protected

Prepares and corrects smart coordinates

Parameters
\WideImage\Image$img
smart_coordinate$width
smart_coordinate$height
string$fit
Returns
array
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: