[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/includes/ -> image.inc (summary)

(no description)

File Size: 271 lines (9 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 9 functions

  image_get_available_toolkits()
  image_get_toolkit()
  image_toolkit_invoke()
  image_get_info()
  image_scale_and_crop()
  image_scale()
  image_resize()
  image_rotate()
  image_crop()

Functions
Functions that are not part of a class:

image_get_available_toolkits()   X-Ref
Return a list of available toolkits.

return:

image_get_toolkit()   X-Ref
Retrieve the name of the currently used toolkit.

return:

image_toolkit_invoke($method, $params = array()   X-Ref
Invokes the given method using the currently selected toolkit.

param: $method
param: $params
return:

image_get_info($file)   X-Ref
Get details about an image.

Drupal only supports GIF, JPG and PNG file formats.

return:

image_scale_and_crop($source, $destination, $width, $height)   X-Ref
Scales an image to the exact width and height given. Achieves the
target aspect ratio by cropping the original image equally on both
sides, or equally on the top and bottom.  This function is, for
example, useful to create uniform sized avatars from larger images.

The resulting image always has the exact target dimensions.

param: $source
param: $destination
param: $width
param: $height
return:

image_scale($source, $destination, $width, $height)   X-Ref
Scales an image to the given width and height while maintaining aspect
ratio.

The resulting image can be smaller for one or both target dimensions.

param: $source
param: $destination
param: $width
param: $height
return:

image_resize($source, $destination, $width, $height)   X-Ref
Resize an image to the given dimensions (ignoring aspect ratio).

param: $source
param: $destination
param: $width
param: $height
return:

image_rotate($source, $destination, $degrees, $background = 0x000000)   X-Ref
Rotate an image by the given number of degrees.

param: $source
param: $destination
param: $degrees
param: $background
return:

image_crop($source, $destination, $x, $y, $width, $height)   X-Ref
Crop an image to the rectangle specified by the given rectangle.

param: $source
param: $destination
param: $x
param: $y
param: $width
param: $height
return:



Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7