JImage::prepareDimensions
Method to get the new dimensions for a resized image.
Signature
protected function prepareDimensions(integer
$width,
integer
$height,
integer
$scaleMethod )
Parameters
-
$width
- The width of the resized image in pixels.
-
$height
- The height of the resized image in pixels.
-
$scaleMethod
- The method to use for scaling
Returns
- stdClass
Errors/Exceptions
-
InvalidArgumentException
- If width, height or both given as zero