[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/inc/files/model/ -> _image.funcs.php (sommaire)

This file implements various Image File handling functions. This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.

Author: fplanque: Francois PLANQUE.
Copyright: (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}
Version: $Id: _image.funcs.php,v 1.1 2007/06/25 10:59:57 fplanque Exp $
Poids: 255 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 6 fonctions

  scale_to_constraint()
  fit_into_constraint()
  load_image()
  save_image()
  output_image()
  generate_thumb()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

scale_to_constraint( $src_width, $src_height, $max_width, $max_height )   X-Ref
Scale dimensions to fit into a constrained size, while preserving aspect ratio.

param: integer source width
param: integer source height
param: integer constrained width
param: integer constrained height

fit_into_constraint( $src_width, $src_height, $max_width, $max_height )   X-Ref
Scale dimensions to fit into a constrained size, while preserving aspect ratio.
The scaling only happens if the source is larger than the constraint.

param: integer source width
param: integer source height
param: integer constrained width
param: integer constrained height

load_image( $path, $mimetype )   X-Ref
Load an image from a file into memory

param: string pathname of image file
param: string
return: array resource image handle or NULL

save_image( $imh, $path, $mimetype, $quality = 90, $chmod = NULL )   X-Ref
Output an image from memory to web client

param: resource image handle
param: string pathname of image file
param: string
param: integer
param: string permissions
return: string

output_image( $imh, $mimetype )   X-Ref
Output an image from memory to web client

param: resource image handle
param: string
return: string

generate_thumb( $src_imh, $thumb_width, $thumb_height )   X-Ref
Generate a thumbnail

return: array short error code + dest image handler



Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics