|
@@ 1363-1370 (lines=8) @@
|
| 1360 |
|
$drp_color = imagecolorclosest($src_img, hexdec($drp_color[0]), hexdec($drp_color[1]), hexdec($drp_color[2])); |
| 1361 |
|
|
| 1362 |
|
// Add the shadow to the source image |
| 1363 |
|
if ($this->wm_use_truetype) |
| 1364 |
|
{ |
| 1365 |
|
imagettftext($src_img, $this->wm_font_size, 0, $x_shad, $y_shad, $drp_color, $this->wm_font_path, $this->wm_text); |
| 1366 |
|
} |
| 1367 |
|
else |
| 1368 |
|
{ |
| 1369 |
|
imagestring($src_img, $this->wm_font_size, $x_shad, $y_shad, $this->wm_text, $drp_color); |
| 1370 |
|
} |
| 1371 |
|
} |
| 1372 |
|
|
| 1373 |
|
/* Set RGB values for text |
|
@@ 1383-1390 (lines=8) @@
|
| 1380 |
|
$txt_color = imagecolorclosest($src_img, hexdec($txt_color[0]), hexdec($txt_color[1]), hexdec($txt_color[2])); |
| 1381 |
|
|
| 1382 |
|
// Add the text to the source image |
| 1383 |
|
if ($this->wm_use_truetype) |
| 1384 |
|
{ |
| 1385 |
|
imagettftext($src_img, $this->wm_font_size, 0, $x_axis, $y_axis, $txt_color, $this->wm_font_path, $this->wm_text); |
| 1386 |
|
} |
| 1387 |
|
else |
| 1388 |
|
{ |
| 1389 |
|
imagestring($src_img, $this->wm_font_size, $x_axis, $y_axis, $this->wm_text, $txt_color); |
| 1390 |
|
} |
| 1391 |
|
|
| 1392 |
|
// We can preserve transparency for PNG images |
| 1393 |
|
if ($this->image_type === 3) |