![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 Pomógł: 0 Dołączył: 4.04.2019 Ostrzeżenie: (0%) ![]() ![]() |
Hej! Jestem nowy u was na forum (IMG:style_emoticons/default/smile.gif)
Potrzebuję pomocy,bo nie bardzo wiem jak rozwiązać problem. Pobrałem skrypt: http://papermashup.com/php-gd-generate-an-...font-embedding/ Fajnie działa,ale chcę trochę bardziej manipulować tekstem. A konkretnie chcę określić miejsce w którym się pojawi na obrazu. Czy mógłby ktoś pomoc zielonemu? (IMG:style_emoticons/default/oneeyedsmiley02.png)
|
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 516 Pomógł: 63 Dołączył: 27.08.2012 Ostrzeżenie: (0%) ![]() ![]() |
przecież masz komentarze w kodzie
3 pierwsze rzeczy do testowania: // this defines the starting height for the text block $y = imagesy($im) - $height - 365; // add 32px to the line height for the next text block $i = $i+32; function center_text($string, $font_size){ global $fontname; $image_width = 800; $dimensions = imagettfbbox($font_size, 0, $fontname, $string); return ceil(($image_width - $dimensions[4]) / 2); } |
|
|
![]() ![]() |
![]() |
Aktualny czas: 10.10.2025 - 03:26 |