Old 1st April 2003, 18:19   #1
xe-cute
Junior Member
 
Join Date: Mar 2003
Posts: 23
now playing script!

I wanna change the following script i got off someone here to show all info/strings on one line in the display and not under each other and i have tried everything i can think of to position it this was but with no luck can anyone help?

this is the section giving me grief:

// positioning below
$px = (imagesx($im)-5*strlen($string1))/2;
ImageString($im,1,$px,5,$string1,$text_color1);
// (image,font (from 1 to 5),starting x position, y position,line of text,color)
$px = (imagesx($im)-5*strlen($string2))/2;
ImageString($im,1,$px,20,$string2,$text_color2);
$px = (imagesx($im)-5*strlen($string3))/2;
ImageString($im,1,$px,30,$string3,$text_color2);
$px = (imagesx($im)-5*strlen($string4))/2;
ImageString($im,1,$px,45,$string4,$text_color1);
ImagePng($im);

thanks in advance for any help!
xe-cute is offline   Reply With Quote
Old 2nd April 2003, 02:47   #2
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
code:
ImageString($im,1,1,0,$string1.$string2.$string3.$string4,$text_color1);
ImagePng($im);


FesterHead is offline   Reply With Quote
Old 2nd April 2003, 12:55   #3
xe-cute
Junior Member
 
Join Date: Mar 2003
Posts: 23
Thankyou so much that is spot on
xe-cute is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump