AsidoAsido API
This class stores the Asido API for some basic image-processing operations like resizing, watermarking and converting.
Located in /class.asido.php (line 282)
boolean
resize
(Asido_Image &$image, integer $width, integer $height, [mixed $mode = ASIDO_RESIZE_PROPORTIONAL])
boolean
watermark
(Asido_Image &$image, string $watermark_image, [mixed $position = ASIDO_WATERMARK_BOTTOM_RIGHT], [mixed $scalable = ASIDO_WATERMARK_SCALABLE_ENABLED], [float $scalable_factor = ASIDO_WATERMARK_SCALABLE_FACTOR])
color (line 811)
Return an color object (Asido_Color) with the provided RGB channels
convert (line 696)
Convert an image from one file-type to another
Use this method to convert a previously created Asido_Image object from its original file-type to another.
copy (line 828)
Copy an image onto an already created Acudo_Image object
crop (line 851)
Crop an already created Acudo_Image object
driver (line 310)
Set a driver
Set a driver as active by providing its name as argument to this static method
fit (line 640)
Resize an image by "fitting" in the provided width and height
Use this method to resize a previously created Asido_Image object if it is bigger then the "frame" set by the provided width and height: if it is smaller it will not be resized
flip (line 872)
Creates a vertical mirror (flip) by reflecting the pixels around the central X-axis
flop (line 888)
Creates a horizontal mirror (flop) by reflecting the pixels around the central Y-axis
frame (line 672)
Resize an image by "framing" it with the provided width and height
Use this method to resize a previously created Asido_Image object by placing it inside the "frame" set by the provided width and height. First the image will be resized in the same manner as Asido::fit() does, and then it will be placed in the center of a canvas with the proportions of the provided width and height (achieving a "Passepartout" framing effect). The background of the "passepartout" is set by the $color argument
get_supported_types (line 401)
Get the supported mime-types by the loaded driver
height (line 588)
Resize an image by making it fit a particular height
Use this method to resize a previously created Asido_Image object by making it fit a particular height while keeping the proportions ratio.
image (line 509)
Get a new image object
is_format_supported (line 426)
Checks whether a mime-type is supported
resize (line 538)
Resize an image
Use this method to resize a previously created Asido_Image object. The resize operation can be performed in three modes. The proportional mode set by ASIDO_RESIZE_PROPORTIONAL will attempt to fit the image inside the "frame" create by the $width and $height arguments, while the stretch mode set by ASIDO_RESIZE_STRETCH will stretch the image if necessary to fit into that "frame". The "fitting" mode set by ASIDO_RESIZE_FIT will attempt to resize the image proportionally only if it does not fit inside the "frame" set by the provided width and height: if it does fit, the image will not be resized at all.
rotate (line 791)
Rotate the provided image (clockwise)
stretch (line 614)
Resize an image by stretching it by the provided width and height
Use this method to resize a previously created Asido_Image object by stretching it to fit a particular height without keeping the proportions ratio.
trigger_abstract_error (line 968)
Output an error when trying to access an abstract method
version (line 293)
Get version of Asido release
watermark (line 735)
Watermark an image
Use this method to watermark a previously create Asido_Image object. You can set the position of the watermark (the gravity) by using each of the nine available "single" positions (single means the watermark will appear only once), or the "tile" position, which applied the watermark all over the image like a tiled wallpaper. If the watermark image is larger than the image that is supposed to be watermarked you can shrink the watermark image: the scale of its shrinking is determined by the $scalable_factor argument.
width (line 563)
Resize an image by making it fit a particular width
Use this method to resize a previously created Asido_Image object by making it fit a particular width while keeping the proportions ratio.
__driver_classname (line 387)
Compose the classname for a driver
If you want to use a different mechanism for composing driver's classname, then override this method in a subclass of Asido
__driver_filename (line 371)
Compose the filename for a driver
If you want to use a different mechanism for composing driver's filename, then override this method in a subclass of Asido
Documentation generated on Mon, 09 Apr 2007 23:57:01 +0300 by phpDocumentor 1.3.0RC4