Class WideImage
The gateway class for loading images and core library functions
Copyright:
2007-2011
This file is part of WideImage.
WideImage is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
WideImage is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with WideImage; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Author: Gasper Kozak
Located at libs/WideImage/WideImage.php
Methods summary
public static
string
|
|
public static
string
|
|
public static
|
|
public static
|
#
registerCustomMapper( string $mapper_class_name, string $mime_type, string $extension )
Registers a custom mapper for image loading and saving |
public static
|
|
public static
|
#
loadFromFile( string $uri )
Create and load an image from a file or URL. The image format is auto-detected. |
public static
|
|
public static
|
|
public static
|
#
loadFromUpload( $field_name, integer $index = null )
This method loads a file from the $_FILES array. The image format is auto-detected. |
public static
|
|
public static
|
#
createTrueColorImage( integer $width, integer $height )
Factory method for creating a true-color image |
public static
boolean
|
|
public static
|
Magic methods summary
Constants summary
integer |
SIDE_TOP_LEFT
|
#
1
|
integer |
SIDE_TOP
|
#
2
|
integer |
SIDE_TOP_RIGHT
|
#
4
|
integer |
SIDE_RIGHT
|
#
8
|
integer |
SIDE_BOTTOM_RIGHT
|
#
16
|
integer |
SIDE_BOTTOM
|
#
32
|
integer |
SIDE_BOTTOM_LEFT
|
#
64
|
integer |
SIDE_LEFT
|
#
128
|
integer |
SIDE_ALL
|
#
255
|
Properties summary
protected static
string
|
$path
Path to the library base directory |
#
null
|