From ac64c93bf8714550d47a546faec59cfea0b4daeb Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 26 Apr 2013 15:09:35 -0700 Subject: doc update --- doc/html/classphoto__driver.html | 927 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 927 insertions(+) create mode 100644 doc/html/classphoto__driver.html (limited to 'doc/html/classphoto__driver.html') diff --git a/doc/html/classphoto__driver.html b/doc/html/classphoto__driver.html new file mode 100644 index 000000000..2ad57223a --- /dev/null +++ b/doc/html/classphoto__driver.html @@ -0,0 +1,927 @@ + + + + + + +The Red Project: photo_driver Class Reference + + + + + + + + + + + + + +
+
+ + + + + + + +
+
The Red Project +
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+ +
+
photo_driver Class Reference
+
+
+
+Inheritance diagram for photo_driver:
+
+
+ + +photo_gd +photo_imagick + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 supportedTypes ()
 
 load ($data, $type)
 
 destroy ()
 
 setDimensions ()
 
 getImage ()
 
 doScaleImage ($new_width, $new_height)
 
 rotate ($degrees)
 
 flip ($horiz=true, $vert=false)
 
 cropImage ($max, $x, $y, $w, $h)
 
 imageString ()
 
 __construct ($data, $type='')
 
 __destruct ()
 
 is_valid ()
 
 getWidth ()
 
 getHeight ()
 
 saveImage ($path)
 
 getType ()
 
 getExt ()
 
 scaleImage ($max)
 
 scaleImageUp ($min)
 
 scaleImageSquare ($dim)
 
 orient ($filename)
 
 store ($aid, $uid, $xchan, $rid, $filename, $album, $scale, $profile=0, $allow_cid= '', $allow_gid= '', $deny_cid= '', $deny_gid= '')
 
+ + + + + + + + + + + + + +

+Protected Attributes

 $image
 
 $width
 
 $height
 
 $valid
 
 $type
 
 $types
 
+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
photo_driver::__construct ( $data,
 $type = '' 
)
+
+ +
+
+ +
+
+ + + + + + + +
photo_driver::__destruct ()
+
+ +
+
+

Member Function Documentation

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
photo_driver::cropImage ( $max,
 $x,
 $y,
 $w,
 $h 
)
+
+abstract
+
+ +
+
+ +
+
+ + + + + +
+ + + + + + + +
photo_driver::destroy ()
+
+abstract
+
+ +

Referenced by __destruct().

+ +
+
+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
photo_driver::doScaleImage ( $new_width,
 $new_height 
)
+
+abstract
+
+ +

Referenced by scaleImage(), scaleImageSquare(), and scaleImageUp().

+ +
+
+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
photo_driver::flip ( $horiz = true,
 $vert = false 
)
+
+abstract
+
+ +

Referenced by orient().

+ +
+
+ +
+
+ + + + + + + +
photo_driver::getExt ()
+
+ +
+
+ +
+
+ + + + + + + +
photo_driver::getHeight ()
+
+ +

Referenced by store().

+ +
+
+ +
+
+ + + + + +
+ + + + + + + +
photo_driver::getImage ()
+
+abstract
+
+ +
+
+ +
+
+ + + + + + + +
photo_driver::getType ()
+
+
+ +
+
+ + + + + + + +
photo_driver::getWidth ()
+
+ +

Referenced by store().

+ +
+
+ +
+
+ + + + + +
+ + + + + + + +
photo_driver::imageString ()
+
+abstract
+
+ +

Referenced by saveImage(), and store().

+ +
+
+ + + +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
photo_driver::load ( $data,
 $type 
)
+
+abstract
+
+ +

Referenced by __construct().

+ +
+
+ +
+
+ + + + + + + + +
photo_driver::orient ( $filename)
+
+

This function is a bit unusual, because it is operating on a file, but you must first create an image from that file to initialise the type and check validity of the image.

+ +
+
+ +
+
+ + + + + +
+ + + + + + + + +
photo_driver::rotate ( $degrees)
+
+abstract
+
+ +

Referenced by orient().

+ +
+
+ +
+
+ + + + + + + + +
photo_driver::saveImage ( $path)
+
+ +
+
+ +
+
+ + + + + + + + +
photo_driver::scaleImage ( $max)
+
+ +
+
+ +
+
+ + + + + + + + +
photo_driver::scaleImageSquare ( $dim)
+
+ +
+
+ +
+
+ + + + + + + + +
photo_driver::scaleImageUp ( $min)
+
+ +
+
+ +
+
+ + + + + +
+ + + + + + + +
photo_driver::setDimensions ()
+
+abstract
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
photo_driver::store ( $aid,
 $uid,
 $xchan,
 $rid,
 $filename,
 $album,
 $scale,
 $profile = 0,
 $allow_cid = '',
 $allow_gid = '',
 $deny_cid = '',
 $deny_gid = '' 
)
+
+ +
+
+ +
+
+ + + + + +
+ + + + + + + +
photo_driver::supportedTypes ()
+
+abstract
+
+ +

Referenced by __construct().

+ +
+
+

Member Data Documentation

+ +
+
+ + + + + +
+ + + + +
photo_driver::$height
+
+protected
+
+
+ +
+
+ + + + + +
+ + + + +
photo_driver::$image
+
+protected
+
+ +

Referenced by photo_gd\getImage(), and photo_imagick\getImage().

+ +
+
+ +
+
+ + + + + +
+ + + + +
photo_driver::$type
+
+protected
+
+ +

Referenced by __construct(), getType(), and photo_imagick\load().

+ +
+
+ +
+
+ + + + + +
+ + + + +
photo_driver::$types
+
+protected
+
+ +
+
+ +
+
+ + + + + +
+ + + + +
photo_driver::$valid
+
+protected
+
+ +

Referenced by is_valid().

+ +
+
+ +
+
+ + + + + +
+ + + + +
photo_driver::$width
+
+protected
+
+
+
The documentation for this class was generated from the following file: +
+
+ -- cgit v1.2.3