phpCoreLib2
[ class tree: phpCoreLib2 ] [ index: phpCoreLib2 ] [ all elements ]

Class: DImageGD

Source Location: /Files/Pictures/DImageGD.php

Class Overview

DObject
   |
   --DImageAbstract
      |
      --DImageGD

Base image file based on GD This class include the main image functions for transformation and image file handling.


Variables

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: DImageAbstract

DImageAbstract::__construct()
Class constructor
DImageAbstract::delFromDisk()
Removes the image
DImageAbstract::getFileData()
Returns raw data
DImageAbstract::getFileName()
Returns file name
DImageAbstract::getParameter()
Returs parameter value
DImageAbstract::getRowParams()
Returns row image parameters
DImageAbstract::saveToDisk()
Saves the image to drive
DImageAbstract::setConvertOptions()
Sets convert options and makes simple validation ot the data
DImageAbstract::setFileData()
Sets the file raw data
DImageAbstract::setFileName()
Sets the file name
DImageAbstract::setMode()
Sets image transformation mode
DImageAbstract::setParameter()
Sets parameter value
DImageAbstract::_calcPositionH()
Calculates Horizontal offset for the watermark
DImageAbstract::_calcPositionV()
Calculates Vertical offsetfot the watermark
DImageAbstract::_handleResult()
Handles the result and returns the result status
DImageAbstract::_makeDestination()
Makes the destination and temporary files if needed
DImageAbstract::_makeSource()
Makes the source variable and temporary files if needed

Class: DObject

DObject::__construct()
Constructor
DObject::debug()
Debig
DObject::getClassMembers()
Gets member variables of the instance
DObject::getClassMemberType()
Gets class member type
DObject::getClassMethods()
Gets classes of the class
DObject::getClassName()
Gets class name
DObject::PHPSerialize()
Gets serialized string of the class
DObject::trace()
Trace
DObject::__destruct()
Descructor
DObject::__toString()
Returns String equivalent of the object.

Class Details

[line 25]
Base image file based on GD This class include the main image functions for transformation and image file handling.



[ Top ]


Class Variables

$newImageHeight =  1

[line 45]

New image height



Tags:

access:  public

Type:   int


[ Top ]

$newImageWidth =  1

[line 38]

New image width



Tags:

access:  public

Type:   int


[ Top ]



Class Methods


static method imageRotate [line 403]

static resource imageRotate( resource $src_img, int $angle)

Rotates image

USAGE: $im = imagecreatefrompng('test.png'); $im = imagerotate($im, 15); header('Content-type: image/png'); imagepng($im);




Tags:

return:  returns a GD image resource
access:  public


Parameters:

resource   $src_img   a GD image resource
int   $angle   degrees to rotate clockwise, in degrees

[ Top ]

constructor __construct [line 52]

DImageGD __construct( $XMLFileConfigName)

Class constructor



Tags:

access:  public


Overrides DImageAbstract::__construct() (Class constructor)

Parameters:

   $XMLFileConfigName  

[ Top ]

method getImagePointer [line 66]

resource &getImagePointer( [ $forceRecreate = array()])

Get image pointer



Tags:

access:  public


Parameters:

array   $forceRecreate  

[ Top ]

method makeFileData [line 85]

void makeFileData( &$resource, string $format, resource $resource)

Makes file data



Tags:

access:  public


Parameters:

resource   $resource  
string   $format  
   &$resource  

[ Top ]

method _crop [line 187]

boolean _crop( )

Crops the image and returns the raw data



Tags:

access:  protected


[ Top ]

method _handleResult [line 328]

boolean _handleResult( string $source, string $result, string $destination)

Handles the result and returns the result status



Tags:

access:  protected


Overrides DImageAbstract::_handleResult() (Handles the result and returns the result status)

Parameters:

string   $result   The result of the convert action
string   $source   The name of the source file
string   $destination   The name of the destination file

[ Top ]

method _identify [line 106]

boolean _identify( [string $path = null])

Identifies the image and sets the $_parameters array



Tags:

access:  protected


Parameters:

string   $path  

[ Top ]

method _imageCopyResampleBicubic [line 354]

void _imageCopyResampleBicubic( &$dst_img, &$src_img, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_w, int $dst_h, int $src_w, int $src_h, resource $dst_img, reosurce $src_img)

port to PHP by John Jensen July 10 2001 (updated 4/21/02)

original code (in C, for the PHP GD Module) by jernberg@fairytale.se




Tags:

access:  protected


Parameters:

resource   $dst_img  
reosurce   $src_img  
int   $dst_x  
int   $dst_y  
int   $src_x  
int   $src_y  
int   $dst_w  
int   $dst_h  
int   $src_w  
int   $src_h  
   &$dst_img  
   &$src_img  

[ Top ]

method _makeSource [line 303]

string _makeSource( )

Makes the source variable and temporary files if needed



Tags:

access:  protected


Overrides DImageAbstract::_makeSource() (Makes the source variable and temporary files if needed)

[ Top ]

method _resize [line 220]

boolean _resize( )

Resizes the image and returns the raw data



Tags:

access:  protected


[ Top ]

method _watermark [line 265]

boolean _watermark( )

Puts watermark on the image



Tags:

access:  protected


[ Top ]


Documentation generated on Sat, 17 Apr 2010 22:06:38 +0300 by phpDocumentor 1.4.3