| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Source view] [Print] [Project Stats]
gdlib.php - Collection of routines in Moodle related to processing images using GD
| Author: | Martin Dougiamas etc |
| License: | http://www.gnu.org/copyleft/gpl.html GNU Public License |
| Version: | $Id: gdlib.php,v 1.14.2.3 2008/02/21 05:23:24 moodler Exp $ |
| File Size: | 324 lines (11 kb) |
| Included or required: | 1 time |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| ImageCopyBicubic($dst_img, $src_img, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) X-Ref |
| short description (optional) long description param: type? $dst_img description? param: type? $src_img description? param: type? $dst_x description? param: type? $dst_y description? param: type? $src_x description? param: type? $src_y description? param: type? $dst_w description? param: type? $dst_h description? param: type? $src_w description? param: type? $src_h description? return: ? |
| delete_profile_image($id, $dir='users') X-Ref |
| Delete profile images associated with user or group param: int $id user or group id param: string $dir type of entity - 'groups' or 'users' return: boolean success |
| create_profile_image_destination($id, $dir='user') X-Ref |
| Given an upload manager with the right settings, this function performs a virus scan, and then scales and crops it and saves it in the right place to be a "user" or "group" image. param: int $id user or group id param: string $dir type of entity - groups, user, ... return: string $destination (profile image destination path) or false on error |
| save_profile_image($id, $uploadmanager, $dir='user') X-Ref |
| Given an upload manager with the right settings, this function performs a virus scan, and then scales and crops it and saves it in the right place to be a "user" or "group" image. param: int $id user or group id param: object $uploadmanager object referencing the image param: string $dir type of entity - groups, user, ... return: boolean success |
| process_profile_image($originalfile, $destination) X-Ref |
| Given a path to an image file this function scales and crops it and saves it in the right place to be a "user" or "group" image. param: string $originalfile the path of the original image file param: string $destination the final destination directory of the profile image return: boolean |
| upgrade_profile_image($id, $dir='users') X-Ref |
| Given a user id this function scales and crops the user images to remove the one pixel black border. param: int $id description? return: boolean |
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |