shared-graphics.php File Reference

Go to the source code of this file.

Functions

 scaleImage ($original, $destination, $width, $height)
 cropImage ($original, $destination, $topCornerX, $topCornerY, $width, $height)


Function Documentation

cropImage ( original,
destination,
topCornerX,
topCornerY,
width,
height 
)

Takes the filename of two images, the image to crop a part of and the one to output the result to, as well as a top corner and width and height of the area

Parameters:
original String containing the filename of the original image
destination String containing the filename where you wish the cropped image to be placed
topCornerX Integer defining the X value of the top left corner of the crop area
topCornerY Integer defining the Y value of the top left corner of the crop area
width Integer defining the width of the cropped area
height Integer defining the height of the cropped area
Returns:
mixed True if it worked, or a translated string explaining the nature of the error if not

Definition at line 112 of file shared-graphics.php.

References i18n().

Referenced by renderEditor().

Here is the call graph for this function:

scaleImage ( original,
destination,
width,
height 
)

Takes the filename of two images, the image to scale from and the one to scale to, as well as a target width and height

Parameters:
original String containing the filename of the original image
destination String containing the filename where you wish the scaled image to be placed
width Integer defining the maximum width of the resulting image
height Integer defining the maximum height of the resulting image
Returns:
mixed True if it worked, or a translated string explaining the nature of the error if not

Definition at line 27 of file shared-graphics.php.

References $out, $src, and i18n().

Referenced by renderEditor(), and Member::renderEditor().

Here is the call graph for this function:


Generated on Sun Oct 26 20:33:14 2008 for The Travelsized Content Management System by  doxygen 1.5.5