| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 569 lines (16 kb) |
| Included or required: | 5 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
Image_Transform:: (32 methods):
factory()
resize()
scaleMaxX()
scaleMaxY()
scale()
scaleByPercentage()
scaleByFactor()
scaleByLength()
_get_image_details()
_parse_size()
uniqueStr()
cleanUp()
createUnique()
_set_img_x()
_set_img_y()
_set_new_x()
_set_new_y()
getImageType()
getWebSafeFormat()
_resize()
load()
display()
save()
free()
colorhex2colorarray()
colorarray2colorhex()
addText()
addDropShadow()
addBorder()
crop()
flip()
gamma()
Class: Image_Transform - X-Ref
The main "Image_Resize" class is a container and base class which| factory($driver) X-Ref |
| Create a new Image_resize object param: string $driver name of driver class to initialize return: mixed a newly created Image_Transform object, or a PEAR |
| resize($new_x = 0, $new_y = 0) X-Ref |
| Resize the Image in the X and/or Y direction If either is 0 it will be scaled proportionally param: mixed $new_x (0, number, percentage 10% or 0.1) param: mixed $new_y (0, number, percentage 10% or 0.1) return: mixed none or PEAR_error |
| scaleMaxX($new_x) X-Ref |
| Scale the image to have the max x dimension specified. param: int $new_x Size to scale X-dimension to return: none |
| scaleMaxY($new_y) X-Ref |
| Scale the image to have the max y dimension specified. param: int $new_y Size to scale Y-dimension to return: none |
| scale($size) X-Ref |
| Scale Image to a maximum or percentage param: mixed (number, percentage 10% or 0.1) return: mixed none or PEAR_error |
| scaleByPercentage($size) X-Ref |
| Scales an image to a percentage of its original size. For example, if my image was 640x480 and I called scaleByPercentage(10) then the image would be resized to 64x48 param: int $size Percentage of original size to scale to return: none |
| scaleByFactor($size) X-Ref |
| Scales an image to a factor of its original size. For example, if my image was 640x480 and I called scaleByFactor(0.5) then the image would be resized to 320x240. param: float $size Factor of original size to scale to return: none |
| scaleByLength($size) X-Ref |
| Scales an image so that the longest side has this dimension. param: int $size Max dimension in pixels return: none |
| _get_image_details($image) X-Ref |
return: void |
| _parse_size($new_size, $old_size) X-Ref |
| Parse input and convert If either is 0 it will be scaled proportionally param: mixed $new_size (0, number, percentage 10% or 0.1) param: int $old_size return: mixed none or PEAR_error |
| uniqueStr() X-Ref |
| No description |
| cleanUp($id, $dir) X-Ref |
| No description |
| createUnique($dir) X-Ref |
| No description |
| _set_img_x($size) X-Ref |
| Set the image width param: int $size dimension to set return: |
| _set_img_y($size) X-Ref |
| Set the image height param: int $size dimension to set return: |
| _set_new_x($size) X-Ref |
| Set the image width param: int $size dimension to set return: |
| _set_new_y($size) X-Ref |
| Set the image height param: int $size dimension to set return: |
| getImageType() X-Ref |
| Get the type of the image being manipulated return: string $this->type the image type |
| getWebSafeFormat() X-Ref |
return: string web-safe image type |
| _resize() X-Ref |
| Place holder for the real resize method used by extended methods to do the resizing return: PEAR_error |
| load($filename) X-Ref |
| Place holder for the real load method used by extended methods to do the resizing return: PEAR_error |
| display($type, $quality) X-Ref |
| Place holder for the real display method used by extended methods to do the resizing param: string filename return: PEAR_error |
| save($filename, $type, $quality) X-Ref |
| Place holder for the real save method used by extended methods to do the resizing param: string filename return: PEAR_error |
| free() X-Ref |
| Place holder for the real free method used by extended methods to do the resizing return: PEAR_error |
| colorhex2colorarray($colorhex) X-Ref |
| Reverse of rgb2colorname. return: PEAR_error |
| colorarray2colorhex($color) X-Ref |
| Reverse of rgb2colorname. return: PEAR_error |
| addText() X-Ref |
| No description |
| addDropShadow() X-Ref |
| No description |
| addBorder() X-Ref |
| No description |
| crop() X-Ref |
| No description |
| flip() X-Ref |
| No description |
| gamma() X-Ref |
| No description |
| Generated: Wed Feb 8 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |