WideImage logo

WideImage Wiki : opCrop

MainPage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
SourceForge.net Logo

wiImage::crop()

See: List of operations

Signature

wiImage::crop($left, $top, $width, $height)

Parameters



Description

Crops an image to the specified rect. Preserves transparency.

Examples

$img = wiImage::load('/path/to/an/image.png');

// crop at rect (10, 10, 50, 50% of height)
$res = $img->crop(10, 10, 50, '50%');



CategoryDocApi

There are no comments on this page. [Add comment]

WideImage - an Object-Oriented PHP Image Library for Image manipulation
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 0.0991 seconds