Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 12.03.2007, 22:09   #2
ateh
Архивный участник
 
Join Date: Apr 2006
Posts: 118
Default

This code is correct. What's not working for you?
As I understand you want to use some background and write on it?
PHP Code:
$img_handle = @ImageCreateFromPNG("playersonline.png"); 
if(!
$img_handle) {
// error to create background (no image?) use your code for this part.
} else {
        
$back_color = ImageColorAllocate ($img_handle, 0, 10, 10);
    
$txt_color = ImageColorAllocate ($img_handle, 235, 235, 51);
    
$myFile = "online.txt";
    
$fh = fopen($myFile, 'r');
    
$theData = fgets($fh);
    
fclose($fh);
        
ImageString ($img_handle, 10, 5, 5, "$theData", $txt_color);
    
ImagePng ($img_handle);
} 
just change 10, 5 to values which will set your number in proper place of image.
ateh is offline  
 

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


All times are GMT. The time now is 21:07.