SproutCMS

This is the code documentation for the SproutCMS project

function crop()

Crop an image to a specific width and height. You may also set the top
and left offset.
This method is chainable.

Usage

object $Image->crop ( integer $width , integer $height [, integer $top [, integer $left ]] );

Arguments

  1. integer $width
    width
  2. integer $height
    height
  3. integer $top = center
    top offset, pixel value or one of: top, center, bottom
  4. integer $left = center
    left offset, pixel value or one of: left, center, right

Exceptions thrown

Return value

  • object