SproutCMS

This is the code documentation for the SproutCMS project

function __construct()

Constructor

Usage

void $CropImageTransform->__construct ( int $width , int $height [, mixed $vert_pos [, mixed $horiz_pos ]] );

Arguments

  1. int $width
    The width to crop the image at.
  2. int $height
    The height to crop the image at.
  3. mixed $vert_pos = center
    The position of the crop. A pixel value, or one of 'top', 'center' or 'bottom'.
  4. mixed $horiz_pos = center
    The position of the crop. A pixel value, or one of 'left', 'center' or 'right'.

Return value

  • void