1 | <?php |
||
19 | class Action |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * SimpleImage class instance |
||
24 | * @var \claviska\SimpleImage $lib |
||
25 | */ |
||
26 | protected $image; |
||
27 | |||
28 | /** |
||
29 | * @param Library $library |
||
30 | * @throws LogicException |
||
31 | */ |
||
32 | public function __construct(Library $library) |
||
42 | |||
43 | /** |
||
44 | * @param string $source |
||
45 | * @param string $target |
||
46 | * @return bool |
||
47 | */ |
||
48 | public function autoOrient(&$source, $target) |
||
54 | |||
55 | /** |
||
56 | * @param string $source |
||
57 | * @param string $target |
||
58 | * @param array $action |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function bestFit(&$source, $target, array $action) |
||
68 | |||
69 | /** |
||
70 | * @param string $source |
||
71 | * @param string $target |
||
72 | * @param array $action |
||
73 | * @return bool |
||
74 | */ |
||
75 | public function flip(&$source, $target, array $action) |
||
82 | |||
83 | /** |
||
84 | * @param string $source |
||
85 | * @param string $target |
||
86 | * @param array $action |
||
87 | * @return bool |
||
88 | */ |
||
89 | public function overlay(&$source, $target, array $action) |
||
96 | |||
97 | /** |
||
98 | * @param string $source |
||
99 | * @param string $target |
||
100 | * @param array $action |
||
101 | * @return bool |
||
102 | */ |
||
103 | public function rotate(&$source, $target, array $action) |
||
110 | |||
111 | /** |
||
112 | * @param string $source |
||
113 | * @param string $target |
||
114 | * @param array $action |
||
115 | * @return bool |
||
116 | */ |
||
117 | public function border(&$source, $target, array $action) |
||
124 | |||
125 | /** |
||
126 | * @param string $source |
||
127 | * @param string $target |
||
128 | * @param array $action |
||
129 | * @return bool |
||
130 | */ |
||
131 | public function fill(&$source, $target, array $action) |
||
138 | |||
139 | /** |
||
140 | * @param string $source |
||
141 | * @param string $target |
||
142 | * @param array $action |
||
143 | * @return bool |
||
144 | */ |
||
145 | public function blur(&$source, $target, array $action) |
||
152 | |||
153 | /** |
||
154 | * @param string $source |
||
155 | * @param string $target |
||
156 | * @param array $action |
||
157 | * @return bool |
||
158 | */ |
||
159 | public function brighten(&$source, $target, array $action) |
||
166 | |||
167 | /** |
||
168 | * @param string $source |
||
169 | * @param string $target |
||
170 | * @param array $action |
||
171 | * @return bool |
||
172 | */ |
||
173 | public function colorize(&$source, $target, array $action) |
||
180 | |||
181 | /** |
||
182 | * @param string $source |
||
183 | * @param string $target |
||
184 | * @param array $action |
||
185 | * @return bool |
||
186 | */ |
||
187 | public function contrast(&$source, $target, array $action) |
||
194 | |||
195 | /** |
||
196 | * @param string $source |
||
197 | * @param string $target |
||
198 | * @param array $action |
||
199 | * @return bool |
||
200 | */ |
||
201 | public function darken(&$source, $target, array $action) |
||
208 | |||
209 | /** |
||
210 | * @param string $source |
||
211 | * @param string $target |
||
212 | * @return bool |
||
213 | */ |
||
214 | public function desaturate(&$source, $target) |
||
220 | |||
221 | /** |
||
222 | * @param string $source |
||
223 | * @param string $target |
||
224 | * @param array $action |
||
225 | * @return bool |
||
226 | */ |
||
227 | public function duotone(&$source, $target, array $action) |
||
234 | |||
235 | /** |
||
236 | * @param string $source |
||
237 | * @param string $target |
||
238 | * @return bool |
||
239 | */ |
||
240 | public function edgeDetect(&$source, $target) |
||
246 | |||
247 | /** |
||
248 | * @param string $source |
||
249 | * @param string $target |
||
250 | * @return bool |
||
251 | */ |
||
252 | public function emboss(&$source, $target) |
||
258 | |||
259 | /** |
||
260 | * @param string $source |
||
261 | * @param string $target |
||
262 | * @return bool |
||
263 | */ |
||
264 | public function invert(&$source, $target) |
||
270 | |||
271 | /** |
||
272 | * @param string $source |
||
273 | * @param string $target |
||
274 | * @param array $action |
||
275 | * @return bool |
||
276 | */ |
||
277 | public function opacity(&$source, $target, array $action) |
||
284 | |||
285 | /** |
||
286 | * @param string $source |
||
287 | * @param string $target |
||
288 | * @param array $action |
||
289 | * @return bool |
||
290 | */ |
||
291 | public function pixelate(&$source, $target, array $action) |
||
298 | |||
299 | /** |
||
300 | * @param string $source |
||
301 | * @param string $target |
||
302 | * @return bool |
||
303 | */ |
||
304 | public function sepia(&$source, $target) |
||
310 | |||
311 | /** |
||
312 | * @param string $source |
||
313 | * @param string $target |
||
314 | * @return bool |
||
315 | */ |
||
316 | public function sharpen(&$source, $target) |
||
322 | |||
323 | /** |
||
324 | * @param string $source |
||
325 | * @param string $target |
||
326 | * @return bool |
||
327 | */ |
||
328 | public function sketch(&$source, $target) |
||
334 | |||
335 | } |
||
336 |