From 155cf6aeea9ba7ecbc39face6442d3ce1b03ad8e Mon Sep 17 00:00:00 2001
From: Nils Schwabe
Date: Wed, 4 Jun 2014 14:27:03 +0200
Subject: Add webinterface with functionallity
---
management-interface/lib/api/classImage.html | 906 +++++++++++++++++++++++++++
1 file changed, 906 insertions(+)
create mode 100644 management-interface/lib/api/classImage.html
(limited to 'management-interface/lib/api/classImage.html')
diff --git a/management-interface/lib/api/classImage.html b/management-interface/lib/api/classImage.html
new file mode 100644
index 0000000..31f70e9
--- /dev/null
+++ b/management-interface/lib/api/classImage.html
@@ -0,0 +1,906 @@
+
+
+
+
+
+
+
Image manipulation tools.
+ More...
+
+ |
+| | rgb ($color) |
+| |
+| | invert () |
+| |
+| | brightness ($level) |
+| |
+| | contrast ($level) |
+| |
+| | grayscale () |
+| |
+| | smooth ($level) |
+| |
+| | emboss () |
+| |
+| | sepia () |
+| |
+| | pixelate ($size) |
+| |
+| | blur ($selective=FALSE) |
+| |
+| | sketch () |
+| |
+| | hflip () |
+| |
+| | vflip () |
+| |
+| | crop ($x1, $y1, $x2, $y2) |
+| |
+| | resize ($width, $height, $crop=TRUE, $enlarge=TRUE) |
+| |
+| | rotate ($angle) |
+| |
+| | overlay (Image $img, $align=NULL) |
+| |
+| | identicon ($str, $size=64, $blocks=4) |
+| |
+| | captcha ($font, $size=24, $len=5, $key=NULL, $path='', $fg=0xFFFFFF, $bg=0x000000) |
+| |
+| | width () |
+| |
+| | height () |
+| |
+| | render () |
+| |
+| | dump () |
+| |
+| | save () |
+| |
+| | restore ($state=1) |
+| |
+| | undo () |
+| |
+| | load ($str) |
+| |
+| | __construct ($file=NULL, $flag=FALSE, $path='') |
+| |
+| | __destruct () |
+| |
+
+ |
+|
+ | $data |
+| | Image resource.
|
+| |
+|
+ | $flag =FALSE |
+| | Enable/disable history.
|
+| |
+|
+ | $count =0 |
+| | Filter count.
|
+| |
+ |
+|
+const | E_Color ='Invalid color specified: %s' |
+| |
+|
+const | E_Font ='CAPTCHA font not found' |
+| |
+|
+const | E_Length ='Invalid CAPTCHA length: %s' |
+| |
+ |
+|
+const | POS_Left =1 |
+| |
+|
+const | POS_Center =2 |
+| |
+|
+const | POS_Right =4 |
+| |
+|
+const | POS_Top =8 |
+| |
+|
+const | POS_Middle =16 |
+| |
+|
+const | POS_Bottom =32 |
+| |
+
+ |
+|
+ | $file |
+| | Source filename.
|
+| |
+
+
+
Image manipulation tools.
+
+
+
+
+
+
+ | Image::__construct |
+ ( |
+ |
+ $file = NULL, |
+
+
+ |
+ |
+ |
+ $flag = FALSE, |
+
+
+ |
+ |
+ |
+ $path = '' |
+
+
+ |
+ ) |
+ | |
+
+
+
+
Instantiate image
+
- Parameters
-
+
+ | $file | string |
+ | $flag | bool |
+ | $path | string |
+
+
+
+
+
+
+
+
+
+
+
+ | Image::__destruct |
+ ( |
+ | ) |
+ |
+
+
+
+
Wrap-up
+
- Returns
- NULL
+
+
+
+
+
+
+
+
+
+ | Image::blur |
+ ( |
+ |
+ $selective = FALSE | ) |
+ |
+
+
+
+
Blur the image using Gaussian filter
+
- Returns
- object
+
- Parameters
-
+
+
+
+
+
+
+
+
+
+
+
+ | Image::brightness |
+ ( |
+ |
+ $level | ) |
+ |
+
+
+
+
Adjust brightness (range:-255 to 255)
+
- Returns
- object
+
- Parameters
-
+
+
+
+
+
+
+
+
+
+
+
+ | Image::captcha |
+ ( |
+ |
+ $font, |
+
+
+ |
+ |
+ |
+ $size = 24, |
+
+
+ |
+ |
+ |
+ $len = 5, |
+
+
+ |
+ |
+ |
+ $key = NULL, |
+
+
+ |
+ |
+ |
+ $path = '', |
+
+
+ |
+ |
+ |
+ $fg = 0xFFFFFF, |
+
+
+ |
+ |
+ |
+ $bg = 0x000000 |
+
+
+ |
+ ) |
+ | |
+
+
+
+
Generate CAPTCHA image
+
- Returns
- object|FALSE
+
- Parameters
-
+
+ | $font | string |
+ | $size | int |
+ | $len | int |
+ | $key | string |
+ | $path | string |
+ | $fg | int |
+ | $bg | int |
+
+
+
+
+
+
+
+
+
+
+
+ | Image::contrast |
+ ( |
+ |
+ $level | ) |
+ |
+
+
+
+
Adjust contrast (range:-100 to 100)
+
- Returns
- object
+
- Parameters
-
+
+
+
+
+
+
+
+
+
+
+
+ | Image::crop |
+ ( |
+ |
+ $x1, |
+
+
+ |
+ |
+ |
+ $y1, |
+
+
+ |
+ |
+ |
+ $x2, |
+
+
+ |
+ |
+ |
+ $y2 |
+
+
+ |
+ ) |
+ | |
+
+
+
+
Crop the image
+
- Returns
- object
+
- Parameters
-
+
+ | $x1 | int |
+ | $y1 | int |
+ | $x2 | int |
+ | $y2 | int |
+
+
+
+
+
+
+
+
+
+
+
+ | Image::dump |
+ ( |
+ | ) |
+ |
+
+
+
+
Return image as a string
+
- Returns
- string
+
+
+
+
+
+
+
+
+ | Image::emboss |
+ ( |
+ | ) |
+ |
+
+
+
+
Emboss the image
+
- Returns
- object
+
+
+
+
+
+
+
+
+ | Image::grayscale |
+ ( |
+ | ) |
+ |
+
+
+
+
Convert to grayscale
+
- Returns
- object
+
+
+
+
+
+
+
+
+ | Image::height |
+ ( |
+ | ) |
+ |
+
+
+
+
Return image height
+
- Returns
- int
+
+
+
+
+
+
+
+
+ | Image::hflip |
+ ( |
+ | ) |
+ |
+
+
+
+
Flip on horizontal axis
+
- Returns
- object
+
+
+
+
+
+
+
+
+ | Image::identicon |
+ ( |
+ |
+ $str, |
+
+
+ |
+ |
+ |
+ $size = 64, |
+
+
+ |
+ |
+ |
+ $blocks = 4 |
+
+
+ |
+ ) |
+ | |
+
+
+
+
Generate identicon
+
- Returns
- object
+
- Parameters
-
+
+ | $str | string |
+ | $size | int |
+ | $blocks | int |
+
+
+
+
+
+
+
+
+
+
+
+ | Image::invert |
+ ( |
+ | ) |
+ |
+
+
+
+
Invert image
+
- Returns
- object
+
+
+
+
+
+
+
+
+ | Image::load |
+ ( |
+ |
+ $str | ) |
+ |
+
+
+
+
Load string
+
- Returns
- object
+
- Parameters
-
+
+
+
+
+
+
+
+
+
+
+
+ | Image::overlay |
+ ( |
+ Image |
+ $img, |
+
+
+ |
+ |
+ |
+ $align = NULL |
+
+
+ |
+ ) |
+ | |
+
+
+
+
Apply an image overlay
+
- Returns
- object
+
- Parameters
-
+
+ | $img | object |
+ | $align | int |
+
+
+
+
+
+
+
+
+
+
+
+ | Image::pixelate |
+ ( |
+ |
+ $size | ) |
+ |
+
+
+
+
Pixelate the image
+
- Returns
- object
+
- Parameters
-
+
+
+
+
+
+
+
+
+
+
+
+ | Image::render |
+ ( |
+ | ) |
+ |
+
+
+
+
Send image to HTTP client
+
- Returns
- NULL
+
+
+
+
+
+
+
+
+ | Image::resize |
+ ( |
+ |
+ $width, |
+
+
+ |
+ |
+ |
+ $height, |
+
+
+ |
+ |
+ |
+ $crop = TRUE, |
+
+
+ |
+ |
+ |
+ $enlarge = TRUE |
+
+
+ |
+ ) |
+ | |
+
+
+
+
Resize image (Maintain aspect ratio); Crop relative to center if flag is enabled; Enlargement allowed if flag is enabled
+
- Returns
- object
+
- Parameters
-
+
+ | $width | int |
+ | $height | int |
+ | $crop | bool |
+ | $enlarge | bool |
+
+
+
+
+
+
+
+
+
+
+
+ | Image::restore |
+ ( |
+ |
+ $state = 1 | ) |
+ |
+
+
+
+
Revert to specified state
+
- Returns
- object
+
- Parameters
-
+
+
+
+
+
+
+
+
+
+
+
+ | Image::rgb |
+ ( |
+ |
+ $color | ) |
+ |
+
+
+
+
Convert RGB hex triad to array
+
- Returns
- array|FALSE
+
- Parameters
-
+
+
+
+
+
+
+
+
+
+
+
+ | Image::rotate |
+ ( |
+ |
+ $angle | ) |
+ |
+
+
+
+
Rotate image
+
- Returns
- object
+
- Parameters
-
+
+
+
+
+
+
+
+
+
+
+
+ | Image::save |
+ ( |
+ | ) |
+ |
+
+
+
+
Save current state
+
- Returns
- object
+
+
+
+
+
+
+
+
+ | Image::sepia |
+ ( |
+ | ) |
+ |
+
+
+
+
Apply sepia effect
+
- Returns
- object
+
+
+
+
+
+
+
+
+ | Image::sketch |
+ ( |
+ | ) |
+ |
+
+
+
+
Apply sketch effect
+
- Returns
- object
+
+
+
+
+
+
+
+
+ | Image::smooth |
+ ( |
+ |
+ $level | ) |
+ |
+
+
+
+
Adjust smoothness
+
- Returns
- object
+
- Parameters
-
+
+
+
+
+
+
+
+
+
+
+
+ | Image::undo |
+ ( |
+ | ) |
+ |
+
+
+
+
Undo most recently applied filter
+
- Returns
- object
+
+
+
+
+
+
+
+
+ | Image::vflip |
+ ( |
+ | ) |
+ |
+
+
+
+
Flip on vertical axis
+
- Returns
- object
+
+
+
+
+
+
+
+
+ | Image::width |
+ ( |
+ | ) |
+ |
+
+
+
+
Return image width
+
- Returns
- int
+
+
+
+
The documentation for this class was generated from the following file:
+
--
cgit v1.2.3-55-g7522