PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sun Aug 09, 2020 6:23 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Fri Aug 12, 2005 9:09 am 
Offline
DevNet Resident

Joined: Tue May 18, 2004 5:32 am
Posts: 1445
Location: London, UK


Last edited by Grim... on Fri Aug 12, 2005 10:04 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 12, 2005 9:10 am 
Offline
DevNet Resident

Joined: Tue May 18, 2004 5:32 am
Posts: 1445
Location: London, UK


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 12, 2005 9:20 am 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA
Moved to ...... Graphics! dun-dun-duuuun...... :P


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 12, 2005 9:31 am 
Offline
DevNet Resident

Joined: Tue May 18, 2004 5:32 am
Posts: 1445
Location: London, UK


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 12, 2005 9:34 am 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 12, 2005 9:44 am 
Offline
DevNet Resident

Joined: Tue May 18, 2004 5:32 am
Posts: 1445
Location: London, UK
Tried that - now I get no error, but no 'boxtest2.jpg' either...

Syntax: [ Download ] [ Hide ]
function drawrectangle($image, $tlx, $tly, $brx, $bry)

{    

    $im = imagecreatefromjpeg($image);

    $color = imagecolorallocate($im, 0, 0, 0);



    imageline($im, $tlx, $tly, $brx, $tly, $color);

    imageline($im, $tlx, $bry, $brx, $bry, $color);  

    imageline($im, $tlx, $tly, $tlx, $bry, $color);  

    imageline($im, $brx, $tly, $brx, $bry, $color);

   

    $dest ="box".$image;    

   

    $w = imagesx($im);

    $h = imagesy($im);

    $dest = imageCreate($w, $h);

    imagecopy($dest, $im, 0, 0, 0, 0, $w, $h);

}


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 12, 2005 9:46 am 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA
you aren't outputting the results.

remember to do on those image resources (memory leaks in GD)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 12, 2005 9:49 am 
Offline
DevNet Resident

Joined: Tue May 18, 2004 5:32 am
Posts: 1445
Location: London, UK


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 12, 2005 9:51 am 
Offline
DevNet Resident

Joined: Tue May 18, 2004 5:32 am
Posts: 1445
Location: London, UK


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 12, 2005 9:52 am 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 12, 2005 9:54 am 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 12, 2005 9:57 am 
Offline
DevNet Resident

Joined: Tue May 18, 2004 5:32 am
Posts: 1445
Location: London, UK


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group