Image_TransformThe main "Image_Resize" class is a container and base class which provides the static methods for creating Image objects as well as some utility functions (maths) common to all parts of Image Resize.
The object model of DB is as follows (indentation means inheritance):
Image_Resize The base for each Image implementation. Provides default | implementations (in OO lingo virtual methods) for | the actual Image implementations as well as a bunch of | maths methods. | +-Image_GD The Image implementation for the PHP GD extension . Inherits Image_Resize When calling DB::setup for GD images the object returned is an instance of this class.
Located in /mambots/editors/mostlyce/jscripts/tiny_mce/imagemanager/Classes/Transform.php (line 62)
| Class | Description |
|---|---|
Image_Transform_Driver_GD
|
The main "Image_Resize" class is a container and base class which provides the static methods for creating Image objects as well as some utility functions (maths) common to all parts of Image Resize. |
Image_Transform_Driver_IM
|
The main "Image_Resize" class is a container and base class which provides the static methods for creating Image objects as well as some utility functions (maths) common to all parts of Image Resize. |
Image_Transform_Driver_NetPBM
|
The main "Image_Resize" class is a container and base class which provides the static methods for creating Image objects as well as some utility functions (maths) common to all parts of Image Resize. |
string
$image
= '' (line 68)
Name of the image file
int
$img_x
= '' (line 78)
Original image width in x direction
int
$img_y
= '' (line 83)
Original image width in y direction
mixed
$lapse_time
= 900 (line 109)
mixed
$lib_path
= '' (line 99)
Path the the library used
e.g. /usr/local/ImageMagick/bin/ or /usr/local/netpbm/
int
$new_x
= '' (line 88)
New image width in x direction
int
$new_y
= '' (line 93)
New image width in y direction
mixed
$resized
= false (line 104)
Flag to warn if image has been resized more than once before displaying or saving.
string
$type
= '' (line 73)
Type of the image file (eg. jpg, gif png ...)
mixed
$uid
= '' (line 107)
Reverse of rgb2colorname.
Reverse of rgb2colorname.
Place holder for the real display method used by extended methods to do the resizing
Create a new Image_resize object
Place holder for the real free method used by extended methods to do the resizing
Place holder for the real load method used by extended methods to do the resizing
Resize the Image in the X and/or Y direction If either is 0 it will be scaled proportionally
Place holder for the real save method used by extended methods to do the resizing
Scale Image to a maximum or percentage
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.
Scales an image so that the longest side has this dimension.
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
Scale the image to have the max x dimension specified.
Scale the image to have the max y dimension specified.
Documentation generated on Mon, 05 May 2008 16:23:52 +0400 by phpDocumentor 1.4.0