1 | <?php |
||
22 | class ImageThumb |
||
23 | { |
||
24 | /** |
||
25 | * Create image thumbnail object |
||
26 | * |
||
27 | * @param string $filename |
||
28 | * @param array $options |
||
29 | * @param array $plugins |
||
30 | * @return PHPThumb |
||
31 | */ |
||
32 | public function create($filename = null, array $options = [], array $plugins = []) |
||
42 | |||
43 | /** |
||
44 | * Create reflection plugin |
||
45 | * |
||
46 | * @param int $percent |
||
47 | * @param int $reflection |
||
48 | * @param int $white |
||
49 | * @param bool $border |
||
50 | * @param string $borderColor hex |
||
51 | * @return Plugins\Reflection |
||
52 | */ |
||
53 | public function createReflection($percent, $reflection, $white, $border, $borderColor) |
||
57 | |||
58 | /** |
||
59 | * Create a plugin to crop the whitespace surrounding an image |
||
60 | * |
||
61 | * @param int $border |
||
62 | * @param int $color |
||
63 | * @return Plugins\WhitespaceCropper |
||
64 | */ |
||
65 | public function createWhitespaceCropper($border = 0, $color = 0) |
||
69 | |||
70 | /** |
||
71 | * Create a beautifull sharpen image |
||
72 | * |
||
73 | * @param int $offset |
||
74 | * @param array $matrix |
||
75 | * @return Plugins\Sharpen |
||
76 | */ |
||
77 | public function createSharpen($offset = 0, array $matrix = []) |
||
81 | |||
82 | /** |
||
83 | * Create a watermark on image |
||
84 | * |
||
85 | * @param PHPThumb $watermarkThumb |
||
86 | * @param array $position |
||
87 | * @param float $scale |
||
88 | * @return Plugins\Watermark |
||
89 | */ |
||
90 | public function createWatermark(PHPThumb $watermarkThumb, array $position = [0, 0], $scale = .5) |
||
94 | } |
||
95 |