Toon posts:

[php] $textcolor werkt niet !?

Pagina: 1
Acties:

Verwijderd

Topicstarter
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?
/* Moveplaatje, door Kevin Levie - v0.1, 020220 */


header ("Content-type: image/png");
header ("Cache-Control: no-store, no-cache, must-revalidate"); 
header ("Expires: Sun, 10 Aug 1986 11:22:00 GMT"); 
header ("Pragma: no-cache");


/* Plaatje laden */
$im = imagecreatefromjpeg("movehk.jpg"); // Geen gif gedaan omdat host dat niet ondersteunt 
$white = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 255, 255, 255);


/* Kijken of strings niet >3, anders nemen ze teveel ruimte in */ 
$to = substr(strtoupper($to), 0, 3); 
$from = "(vanuit:" . substr(strtoupper($from), 0, 3) . ")";


/* String toevoegen aan de afbeelding */
ImageString($im, 8, 225, 60, $to, $white);
ImageString($im, 3, 225, 75, $from, $white);
ImageString($im, 3, 185, 100, $reason, $white);


/* En maak het plaatje zelf */
ImagePng($im);
?>

de text van

[url="http://uh.gamepoint.net/5chaap2k/move/moveit.php?from=la&to=PW&reason=K%20snap%20ut%20niet&ext=.png""]HET SCRIPT[/url]

zou volgens mij wit moetten worden... maar dat wordt ie niet..

waarom niet??

  • ACM
  • Registratie: Januari 2000
  • Niet online

ACM

Software Architect

Werkt hier

Je moet geen colorallocate gebruiken maar die andere allocate, vanwege je jpg.
[edit]
Ik denk dat dees wel nuttig is:
http://www.php.net/manual/en/function.imagecolorresolve.php

Verwijderd

Topicstarter
tnx!!

hij werkt

  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Is PNG niet een idee ipv JPEG?

"The shell stopped unexpectedly and Explorer.exe was restarted."


Verwijderd

Topicstarter
Op donderdag 21 februari 2002 19:53 schreef jelmervos het volgende:
Is PNG niet een idee ipv JPEG?
is het ook


zie...

http://gathering.tweakers.net/forum/list_message/12403452#12403452

:)

  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Op donderdag 21 februari 2002 20:01 schreef 5chaap2k het volgende:

[..]

is het ook


zie...

http://gathering.tweakers.net/forum/list_message/12403452#12403452

:)
Aha, oke. :)

"The shell stopped unexpectedly and Explorer.exe was restarted."

Pagina: 1